Author Topic: 64-bit Java  (Read 2079 times)

Offline quixadhal

  • BFF
  • ***
  • Posts: 642
    • View Profile
    • WileyMUD
64-bit Java
« on: December 05, 2012, 10:37:21 am »
Not sure where a good place to post this is, as it isn't LPC, but it's also not quite generic "chat".

Anyways, I know a few of you guys run/play minecraft, and there may even be a few who use CoffeeMUD or some other java codebase out there.  If so, there's a small chance you use Debian or Ubuntu linux, and are annoyed by the fact that there's no official Oracle package for java, and there's also no 64-bit version.

So....  here's how to make Debian use the 64-bit one, and I assume Ubuntu would work the same way.

Code: [Select]
                Go to orcale's web site and download the latest 64-bit jdk, currently:

                mkdir -p /opt/java/64
                cd /opt/java/64
                tar xf jdk-7u7-linux-x64.tar.bz2
                chown -R root.root /opt/java
                chmod ugo+rx -R /opt/java

                update-alternatives --install /usr/bin/java java /opt/java/64/jdk1.7.0_07/bin/java 666
                update-alternatives --install /usr/bin/javac javac /opt/java/64/jdk1.7.0_07/bin/javac 666
                update-alternatives --set java /opt/java/64/jdk1.7.0_07/bin/java
                update-alternatives --set javac /opt/java/64/jdk1.7.0_07/bin/javac

            To verify the right one is being used:

                update-alternatives --config java
                java -version