Forum: Installation

Post: VoltDB installation on RedHat

VoltDB installation on RedHat
ronaldmuts
Aug 21, 2014
Hello,

i did a VoltDB installation on RedHat Enterprise Linux Server release 6.5 using the RPM pacakage. In order to succesfull install i first installed java.

[root]# java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Now i am going through the voltdb tutorial and at the first command i receive this error:

[root]# voltdb compile towns.sql
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/voltdb/compiler/VoltCompiler, offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
at java.net.URLClassLoader.access$300(URLClassLoader.java:79)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038)
at java.security.AccessController.doPrivileged(AccessController.java:284)
at java.net.URLClassLoader.findClass(URLClassLoader.java:429)
at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
Could not find the main class: org.voltdb.compiler.VoltCompiler. Program will exit.

Does anybody know how to solve this?
rmorgenstein
Sep 16, 2014
Hi,
What is the version of javac? If it is 1.6... you will need to install the full jdk and configure javac to default to 1.7.

Ruth