Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the deal? I ran the RPM for java 7 64-bit and watched the folders populate at /usr/java but I can't run craftbukkit and when I do java -version it says 1.4.2?

share|improve this question
I think, you have to set JAVA_HOME and PATH. – user122530 May 4 '12 at 0:25
found the answer – ioSamurai May 4 '12 at 0:27
Please provide your answer as an answer, so you can accept it. – Flimzy May 4 '12 at 4:39
up vote 1 down vote accepted

run this command to change the default java:

/usr/sbin/alternatives --config java

add a new one to the list:

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_15/bin/java 2

Then run the top thing again to choose the '2' as default (or whatever number you put at the end of the install command above).

share|improve this answer
Works for Redhat too. – Warren Dew Mar 1 '14 at 5:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.