Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Installing Java on Suse with existing installation

843804Oct 2 2005 — edited Mar 5 2010
Hello All,

I'm rather a newbie when installing Java on a (Suse) Linux system. I downloaded both the
jdk-1_5_0_05-linux-i586.bin
and
jdk-1_5_0_05-linux-i586-rpm.bin
files and installed them.

The first one had no noticable effect. In the end I copied he rpm to my /usr/lib/jvm directory and installed the rpm.

The result is that I have the following contents in the /usr/lib/jvm directory:
rwxr-xr-x 6 root root 424 2005-10-02 11:03 .
drwxr-xr-x 108 root root 34168 2005-10-02 11:03 ..
lrwxrwxrwx 1 root root 26 2005-10-02 11:03 java -> /etc/alternatives/java_sdk
lrwxrwxrwx 1 root root 32 2005-10-02 11:03 java-1.4.2 -> /etc/alternatives/java_sdk_1.4.2
lrwxrwxrwx 1 root root 23 2005-10-02 11:03 java-1.4.2-sun -> java-1.4.2-sun-1.4.2.05
drwxr-xr-x 6 root root 144 2005-10-02 11:03 java-1.4.2-sun-1.4.2.05
drwxr-xr-x 3 root root 72 2005-06-24 13:04 java-1.4.2-sun-1.4.2.06
drwxr-xr-x 3 root root 72 2005-10-02 10:46 java-1.4.2-sun-1.4.2.08
lrwxrwxrwx 1 root root 30 2005-10-02 11:03 java-sun -> /etc/alternatives/java_sdk_sun
drwxr-xr-x 9 root root 376 2005-08-27 03:34 jdk1.5.0_05
lrwxrwxrwx 1 root root 21 2005-10-02 11:01 jre -> /etc/alternatives/jre
lrwxrwxrwx 1 root root 27 2005-10-02 11:01 jre-1.4.2 -> /etc/alternatives/jre_1.4.2
lrwxrwxrwx 1 root root 27 2005-10-02 11:01 jre-1.4.2-sun -> java-1.4.2-sun-1.4.2.05/jre
lrwxrwxrwx 1 root root 25 2005-10-02 11:01 jre-sun -> /etc/alternatives/jre_sun

The JDK 1.5 is installed, but the links are not changed. Even the java from the bin directory is linked to the java of the 1.4 jre:
~> ls -la /usr/lib/jvm/jdk1.5.0_05/bin/java
lrwxrwxrwx 1 root root 22 2005-10-02 11:10 /usr/lib/jvm/jdk1.5.0_05/bin/java -> /etc/alternatives/java
~> ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 35 2005-10-02 11:01 /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-sun/bin/java

What do I need to do to change the links? What do I need to do to change all (probably hidden) links all over my system?

Tia,
Michel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2010
Added on Oct 2 2005
4 comments
1,089 views