PDA

View Full Version : [ubuntu] Installing Sun Java 7



rogerfgay
September 25th, 2011, 10:25 AM
I tried installing the sun java 7 jdk rpm by following instructions for converting it to a deb and then installing. I then tried to set the alternative config to the java 7 installation. Java 7 did not appear on the list.

Now I'd like to follow sun's instructions. As a first step, it wants me to uninstall the other versions of java. I don't know how to do that. Can't even find them. (I guess I don't have to say that I'm relatively new to Linux now.)


By the end of this discussion, I'm hoping to have sun java 7 (jdk / jre) properly installed and operating as the default. - Thank you.

ibutho
September 25th, 2011, 10:34 AM
It's not normal to install rpms on Ubuntu (its a debian based distro so uses deb packages). Try the instructions here (http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html).

rogerfgay
September 25th, 2011, 11:29 AM
Brilliant. Thank you. I've confirmed installations with java(c) -version and am now running the app built with java 7.

In addition to the instructions on the page, I also had to rerun

sudo update-alternatives --config java

When I did that, I noticed that I have two 1.7.0 installations listed.

rogerfgay
September 25th, 2011, 12:58 PM
So, I'd still be interested in learning how to uninstall. The second 1.7 doesn't need to be there. Neither do the 1.6s.

raja.genupula
September 25th, 2011, 05:07 PM
you can uninstall it from synaptic package manager.type java in the search box and select the jdk version which you wanna remove.

All the best.