Forum: Installation

Post: Java7 on Linux

Java7 on Linux
rgrzywinski
Feb 20, 2013
When I try to start VoltDB on Linux (CentOS) using JDK 7:

java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)


I get:

FATAL: You are running on an unsupported (probably 32 bit) JVM. Exiting.

After looking at https://github.com/VoltDB/voltdb/blob/master/src/frontend/org/voltdb/RealVoltDB.java I ran System.getProperty("java.vm.name") which returns:

Java HotSpot(TM) 64-Bit Server VM

on Java6 (as expected) and:

Java HotSpot(TM) Server VM

on Java7 (which makes sense given the error and RealVoltDB.java).

(I see from other posts that Java6 is the preferred Java version for VoltDB so I will use that.)
rbetts
Feb 20, 2013
Thank you for this error report - looks like we'll have to do a little more work to make this check correct with Java 7. We do run Java 7 internally here and there but production testing is done on Java 6.

You can track the associated defect report here if interested:
https://issues.voltdb.com/browse/ENG-4400

Ryan.
rbetts
Feb 20, 2013
Thank you for this error report - looks like we'll have to do a little more work to make this check correct with Java 7. We do run Java 7 internally here and there but production testing is done on Java 6.

You can track the associated defect report here if interested:
https://issues.voltdb.com/browse/ENG-4400

Ryan.
prosegay
Feb 21, 2013
We need some additional info for your case, will you kindly post the output for these commands:

uname -a

alternatives --config java

which java

java -version

javac -version

ldd <path to voltdb distribution>/voltdb/libvoltdb-xxx.so (ex, ldd ~/voltdb-ent-3.0/voltdb/libvoltdb-3.0.so if you installed the latest distribution in your home directory)

thanks
vtkstef
Feb 21, 2013
may you also please provide us with the output of the following command

readlink -e `which java`

thanks
vtkstef
Feb 21, 2013
may you also please provide us with the output of the following command

readlink -e `which java`

thanks