Find the answer to your Linux question:
Results 1 to 5 of 5
I have a Sun Fire X4450 running RHEL 5.3. Attached to this server via FC is a Sun StorageTek ST2540 that allows additional storage capacity. In order to administer the ...
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    8

    Cannot Install Older Version Of Java JDK

    I have a Sun Fire X4450 running RHEL 5.3. Attached to this server via FC is a Sun StorageTek ST2540 that allows additional storage capacity. In order to administer the ST2540, a software application from Sun (CAM 6.6) has been installed. Part of the install process for this application also installs Java JDK1.6.0_12 (64-bit).

    However as we use this hardware as a database server, our database software will not install properly as it requires an earlier version of Java JDK1.5.0_11 to be installed. When I try and install the older JDK rpm package, RHEL will not let me. How can I get both versions of Java installed?

    TIA.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    If you had the 1.5.0 JDK installed and didn't uninstall it, it is still there. Installing the new one just updates some softlinks in /usr/java. Look in the /usr/java directory. You should see two softlinks, default and latest. In /usr/bin you will see that /usr/bin/java is a link to /usr/java/default/bin/java (ditto /usr/bin/javac et al) and /usr/java/default is a link to /usr/java/latest which is in turn a link to (probably) /usr/java/jdk1.6.0_12. You can revert to the jdk1.5.0_11 by resetting /usr/java/default to that directory instead of latest or you can make /usr/java/jdk1.5.0_11/bin first in the PATH used by your database software. I would try changing /usr/java/default first and see if the storage application continues to work (it will probably) before going the PATH modification route.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    8
    Unfortunately the CAMS 6.6 installation did indeed uninstall jdk1.5.0_11 as part of it's install process - it's not in the RPM listing.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Well, then download the 1.5.0_11 or similar JDK rpm file from Sun/Oracle and install it manually. I currently have 3 versions of Java installed on my system, but until recently I had about 7 or 8. Some of those I removed because I didn't need them any more and just wanted to clean up the system somewhat of old moldy bits.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you also don't actually have to use the RPM, you could download the old JDK bundle and just extract it into some directory like /opt, make sure whatever needs it knows where to look and not to use the other JDK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...