Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
found the answer rndblog.com/how-to-switch-java-in-centos –  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

1 Answer 1

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 at 5:24

Your Answer

 
discard

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.