Javah has been removed since java 10. It would be very nice to see, if jnigen supported javac -h instead of javah, or maybe both by checking the current java version.
Article about the removal: https://openjdk.java.net/jeps/313
Reproduction steps/code
public static void main(String[] args) throws Exception {
NativeCodeGenerator jnigen = new NativeCodeGenerator();
jnigen.generate("X/src/main/java", "X/target/classes", "jni", new String[
{"**/X.java"}, null);
}
Version of LibGDX and/or relevant dependencies
Jnigen: 1.9.8
Stacktrace
Exception in thread "main" java.io.IOException: Cannot run program "javah": CreateProcess error=2, The system cannot find the file specified
Here is the method from the "NativeCodeGenerator" class.
Issue details
Javah has been removed since java 10. It would be very nice to see, if jnigen supported javac -h instead of javah, or maybe both by checking the current java version. Article about the removal: https://openjdk.java.net/jeps/313
Reproduction steps/code
Version of LibGDX and/or relevant dependencies
Jnigen: 1.9.8
Stacktrace
Exception in thread "main" java.io.IOException: Cannot run program "javah": CreateProcess error=2, The system cannot find the file specified
Here is the method from the "NativeCodeGenerator" class.