I receive the following error message when building with multiple JDKs installed on the system. The default system java, javac, javah, etc. are using JDK7, while JAVA_HOME is set to JDK8. Normally, maven would use JAVA_HOME to build everything.
Plugin: org.codehaus.mojo:native-maven-plugin:1.0-alpha-8
Goal: javah
Phase: compile
Configuration:
<javahClassNames>
<javahClassName>path.to.ClassFile</javahClassName>
</javahClassNames>
It appears that the javah command this plugin selected to use was the one from the path, not the one from JAVA_HOME like the rest of the maven plugins do. This is incorrect behavior, and resulted in the following error:
/path/to/JarFile.jar(path/to/ClassFile.class): major version 52 is newer than 51, the highest major version supported by this compiler.
I receive the following error message when building with multiple JDKs installed on the system. The default system
java,javac,javah, etc. are using JDK7, whileJAVA_HOMEis set to JDK8. Normally, maven would useJAVA_HOMEto build everything.Plugin:
org.codehaus.mojo:native-maven-plugin:1.0-alpha-8Goal:
javahPhase:
compileConfiguration:
It appears that the
javahcommand this plugin selected to use was the one from the path, not the one fromJAVA_HOMElike the rest of the maven plugins do. This is incorrect behavior, and resulted in the following error: