Hi All,
While migrating from Java 8 to Java 10 , I came accross a strange issue. In our legacy system there is a JNI layer and we are generating the header file from a .class file using the below command like:
javah -jni -classpath classes -o jpdm.h com.osm.biz.pdm
This set of command is giving me the issue like:
Error: Could not find class file for 'com.osm.biz.pdm'.
I am getting this perticular issue while compiling in JAVA 10.
Strange thing is when I replace the same .class file (pdm.java) built in Java 8 and execute the same command as above , I don't get any issue.
My question
Is Java 10 no more support header file generation through above command ?
Is there any alternative way to generate header file creation using Java 10?