0

Usually the version error in java occurs due to a package being compiled in a higher version and being run on a lower version of java ( this is my understanding, please correct if I am wrong ) but I have the same version of java installed on 2 nodes but still getting a version error when the package is compiled on one of the nodes and run on another node. The jdk used for installation is "jdk-7u17-linux-i586.tar.gz". Both the machines are running 32-bit Linux(Ubuntu) OS.

Any idea why this could be happening ?

4
  • 6
    Can you please show us the exact error that is shown to you? Commented Jul 15, 2013 at 11:29
  • What is the exact error message? Maybe you have more than one JDK installed. Commented Jul 15, 2013 at 11:29
  • 1
    This kind of errors usually shows up when multiple JREs/JDKs are installed and you are actually running another one. Check java -version on both machines and see if you have OpenJDK or GCJ installed. Commented Jul 15, 2013 at 11:31
  • Which version do the application servers running use? Maybe configured differently? Maybe shown in the boot log too, before the app is launched. Commented Jul 15, 2013 at 13:06

1 Answer 1

4

You can check for multiple installation of JRE/JDK.

update-java-alternatives -l

  • Shows you all the Java versions you have installed.

java -showversion

  • Shows you the java version you are using and help.

java -version

  • Java Version only
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.