installing java 6 in linux mint 14

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
angelochen960
Level 1
Level 1
Posts: 2
Joined: Wed Dec 05, 2012 4:45 am

installing java 6 in linux mint 14

Post by angelochen960 » Thu Dec 06, 2012 10:19 am

Hi,

after installing linux mint 14, i noticed there is already a openJDK java 7 installed. I'd like to remove it and replace it with Sun's java 6, any instructions on how to achieve this? Thanks,

Angelo

00negative
Level 1
Level 1
Posts: 4
Joined: Tue Dec 04, 2012 7:06 pm

Re: installing java 6 in linux mint 14

Post by 00negative » Thu Dec 06, 2012 10:31 am

You can use the java install section to answer your question

http://forum.xda-developers.com/showthr ... ?t=1863547

The purge command in the link gets rid of the openjdk

You can also use the sudo alternatives --config java command to select the version to use

And use the java -version command to check the version is set to the sun version

Sent using Tapatalk 2

User avatar
Jim1938
Level 2
Level 2
Posts: 76
Joined: Thu Nov 29, 2012 8:49 pm
Location: USA

Re: installing java 6 in linux mint 14

Post by Jim1938 » Thu Dec 06, 2012 8:44 pm

I did the opposite.
Removed 6 and installed 7.
I used Synaptic Package Mgr to both removel and installation.
I was successful.
Wirth's law - Software is getting slower more rapidly than hardware becomes faster.

00negative
Level 1
Level 1
Posts: 4
Joined: Tue Dec 04, 2012 7:06 pm

Re: Re: installing java 6 in linux mint 14

Post by 00negative » Fri Dec 07, 2012 9:05 am

Jim1938 wrote:I did the opposite.
Removed 6 and installed 7.
I used Synaptic Package Mgr to both removel and installation.
I was successful.
They are trying to install Sun's version, so it isn't in the package manager anymore unless they added an old or third party repo.

den68
Level 1
Level 1
Posts: 45
Joined: Sun Jun 17, 2012 12:32 pm

Re: installing java 6 in linux mint 14

Post by den68 » Fri Dec 07, 2012 9:34 am

this is what I do after purging openjdk :

Code: Select all

  sudo apt-add-repository ppa:flexiondotorg/java
  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EA8F35793D8809A
  sudo apt-get update
  sudo apt-get install sun-java6-jre sun-java6-plugin
hope it helps

Post Reply

Return to “Software & Applications”