Forum: Installation

Post: UnsupportedClassVersionError happens whan I update the version from 3. to 4.0.2

UnsupportedClassVersionError happens whan I update the version from 3. to 4.0.2
2170p
Jan 28, 2014
I'd like to try the newest version of voltDB, and I installed ver 4.0.2.
So I updated from 3.7 to 4.0.2, yet some error appears.

It seems that PATH and CLASSPATH are correct...

# java -version
java version "1.6.0_38"


# voltdb create test.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/voltdb/VoltDB : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.voltdb.VoltDB. Program will exit.

How can I solve this?
bballard
Jan 28, 2014
VoltDB 4.0 requires Sun or Open JDK version 7. You will need to install JDK 7, then recompile stored procedure java classes and the catalog.