PDA

View Full Version : How to install java 6?



siegfried
11th March 2007, 07:09 AM
I've been google searching for the fedora counterpart to http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_Upgrade_to_Java_Development_Kit _.28JDK.29_v6.0.

Is there such a document? I'm not so much interested in updating to java6 as I am installing java6 from sun. I have downloaded sun's rpm but when I type

javac -v

I seem I'm getting ibm's java 1.4.2. Should I follow the ubuntu instructions?

Thanks
Siegfried

Wayne
11th March 2007, 07:10 AM
http://www.geocities.jp/rondonko/fc6notes.html#Java

Wayne

siegfried
11th March 2007, 07:13 AM
I forgot to mention that I installed the rpm too.

Wayne
11th March 2007, 07:19 AM
The general consensus is not to use the RPM, one or two people do but I would guess the majority use the .bin version.

Wayne

strikeforce
11th March 2007, 07:36 AM
Another reference is http://fedorasolved.org/browser-solutions/java-i386/

markkuk
11th March 2007, 09:45 AM
I forgot to mention that I installed the rpm too.
If you have installed Sun's Java6 RPM, continue by installing java-1.6.0-sun-compat package from JPackage (http://www.jpackage.org/browser/rpm.php?jppversion=1.7&id=2285). Read the installation instructions (http://www.jpackage.org/installation.php), and use the alternatives command to set your preferred Java system.

revengeska
11th March 2007, 10:33 AM
I was wondering the same thing myself just today. With a little bit of searching I went and found:

http://ccl.net/cca/software/SOURCES/JAVA/JSDK-1.5/index.shtml

It's for 1.5, but substitute the 1.6 package for 1.5, and it works like a charm.

Note: I wasn't sure what to do when I got down to the "yum --enablerepo=jpackage-generic-nonfree install java-1.5.0-sun-compat" step which installs the SUN JDK Compatibility RPM from JPackage.org, so I just skipped this step. It worked fine, regardless, so just improvise I guess, or post if you have any problems:) That is, assuming you chose this over the 3 other links above. ;)

mrhaigui
12th March 2007, 03:15 PM
download java6 from sun and read the "readme" then do it like that