I'm trying to use Pentaho Kettle 5.0.1A-stable with the Neo4j JDBC driver but when I try to preview the data of a "Table Input" step I get this error:
Failed to execute runnable (java.lang.UnsupportedClassVersionError: org/neo4j/jdbc/Driver : Unsupported major.minor version 51.0)
Screenshot:
I have these lines in my .zshrc file
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` export PENTAHO_JAVA_HOME=`/usr/libexec/java_home -v 1.7`
Any thoughts?
They say that this error usually happens because of a higher JDK during compile time and lower JDK during runtime but I already set PENTAHO_JAVA_HOME so I'm running out of ideas here.
Not an answer, but maybe some insight:
A major version of 51 corresponds to JDK 7 - that is in line with your description how you've built the Neo4j JDBC driver. Since Neo4j is based on JDK 7 and the JDBC Driver uses internally some of the Java 7 language features it is not possible to build it with a previous JDK.
It looks like kettle is using an earlier JDK version. Unfortunately I cannot give a advice how to force a specific JDK for Kettle. You might inspect your process list using ps aux
and grep for kettle to see the full command being run.