Question

How to install 64 bit JDK on Ubuntu 12.04

Posted November 10, 2013 9.7k views
I'm running Ubuntu 12.04 x64 and a Minecraft server on it, the tutorial I followed https://www.digitalocean.com/community/articles/how-to-set-up-a-minecraft-server-on-linux tells me to download the JDK (Java runtime), for obvious reasons. But when I run "java -d64" it says "This Java instance does not support a 64-bit JVM. Please install the desired version." How do I install the desired version correctly?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Submit an Answer