Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I ran the script here: https://github.com/flexiondotorg/oab-java6/blob/master/oab-java.sh and it succeed. But why do I get:

ryan@palms ~ $ /usr/lib/jvm/java-6-openjdk/bin/java -version
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-1ubuntu1)
OpenJDK Server VM (build 23.2-b09, mixed mode)
share|improve this question
1  
Have you run sudo update-alternatives --config java? –  Terry Wang May 27 '13 at 1:00
1  

1 Answer 1

up vote 1 down vote accepted

You must change your default java.

  • sudo update-alternatives --install "/usr/bin/java" "java" "/full/path/to/bin/java" 1
  • sudo update-alternatives --config java

More details here.

share|improve this answer

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.