Results 1 to 1 of 1

Thread: Upgrading your JDK

  1. #1
    Join Date
    Dec 2007

    Upgrading your JDK

    Eh, I'm sure there's better ways... But this is just my solution, comment/correct as you feel necessary. I'm sure theres several ways to reach the same end.

    It seems the repository is a fair bit out of date, and if you're a java junkie like myself, this bothers you... Especially because of all the new functionality in the beta releases lately.

    The main bonus in the new JVM's is the fix for the heapspace. In the repository version, you can't go above a 768mb heapspace without getting bugs on some systems for no apparent reason... Supposedly this has been resolved. At least, upgrading fixes it for me (yay).

    So, after I looked at the deb install file I came up with this solution and decided to share it.

    You need to install the java development kit from repository...
    sudo apt-get install sun-java6-jdk
    Visit, click download on the "Update x beta" or whatever version you want, and navigate through your system information until you get your bin file... Not the RPM remember we're a Debian distribution, we WILL NOT use red hat package managers.

    Once it's downloaded, navigate to the directory in a terminal and extract it by doing:
    sh jdk-VERS-beta-linux-ARCH.bin
    Of course replacing VERS and ARCH accordingly. (ie. "sh jdk-6u10-beta-linux-x64.bin")

    Navigate through the license... You should probably read that but in case you just don't care, type "yes" and hit enter to skip it.

    If you've done everything right to here, you should now have a folder in the downloaded directory that's "jdkVERSION" or in my example case "jdk1.6.0_10"

    We need to move this to a globally accepted place. (/usr/lib/jvm/)
    sudo mv jdkVERSION /usr/lib/jvm/
    Navigate to the jvm folder...
    cd /usr/lib/jvm/
    Delete the old symbolic link...
    sudo rm java-6-sun
    Add the new link to our fresh java:
    sudo ln -s jdkVERSION java-6-sun

    To verify the installation:
    java -version
    It should now say whatever version you installed.
    Last edited by sh!ft; June 17th, 2008 at 06:08 PM.


Posting Permissions

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