On what operating system are you running your application?
What was the old version of Java that you were using, and what is the new version?
This error in most cases means that you have set up the classpath wrong, or that the *.class file is in a wrong directory (note that the directory structure must match the Java package structure), or that you forgot to compile (part of) your source files so that one or more *.class files are missing, or that you are specifying the wrong class name to run.
[email protected]:/Data Stax_POC# which java /usr/bin/java [email protected]:/Data Stax_POC# java -version java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java Hot Spot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) [email protected]:/Data Stax_POC# An alternative is the Zulu port of Open JDK which can be downloaded as a zip file, unpacked and used directly.
If needing to run from the command line, consider prepending the bin directory to $PATH in .bash_profile.
Downloads available at (untested as I do not have a 12.04 system available.
It appears though that the requirement of glibc being at least 2.5 is satisfied) Another possible solution is to add the PPA repository from the project ubuntu-justchedavailable in the Github.