View Full Version : JDK 1.5 and Fedora 3

12th February 2005, 06:19 PM
I'm trying to install the JDK -not- the JRE.

I followed the instructions from sun's website for the jdk-1_5_0_01-linux-i586-rpm.bin

When I was finished I ended up with a /usr/java/jdk1.5.0_01 directory with all of the files/folders that I would expect.

I added the following to my /etc/profile: ( thanks to this post (http://www.fedoraforum.org/forum/showthread.php?t=26505) )

pathmunge /usr/java/java/bin after
export JAVA_HOME

I added the following symbolic link in my java directory so i can install multiple JDKs in the /usr/java directory::

ln -s jdk1.5.0_01 java

I logged out an then back in and when i issue a java -version, i see the following:

$ java -verison

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
gij: unrecognized option -- `-verison'
Try `gij --help' for more information.

What am I still missing??

12th February 2005, 06:33 PM
You need to uninstall the gcj package. Use

rpm -qa | grep gcj

to locate the package(s) to remove.

12th February 2005, 07:14 PM
I issued the following commands:

[root /usr/java]
# rpm -qa | grep gcj

[root /usr/java]
# rpm -e libgcj-devel-3.4.2-6.fc3
error: Failed dependencies:
libgcj-devel >= 3.4.2 is needed by (installed) gcc-java-3.4.2-6.fc3.i386

[root /usr/java]
# rpm -e libgcj-3.4.2-6.fc3
error: Failed dependencies:
libgcj = 3.4.2 is needed by (installed) libgcj-devel-3.4.2-6.fc3.i386
libgcj >= 3.4.2 is needed by (installed) gcc-java-3.4.2-6.fc3.i386

[root /usr/java]
# rpm -e gcc-java-3.4.2-6.fc3.i386

[root /usr/java]
# rpm -e libgcj-devel-3.4.2-6.fc3

[root /usr/java]
# rpm -e libgcj-3.4.2-6.fc3

logged out, logged back in and success!! :D

Thanks crackers!

$ java -version
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

13th February 2005, 03:49 AM
Now that you got this far, you might want to check my (somewhat forward/backwards) attempts in this thread - http://fedoraforum.org/forum/showthread.php?t=26505 - especially if you want multiple JDK's installed.