|I wanted to try Java 1.8.0_202 to test some other stuff, but after changing in PATH the location for
jvm.dll for this version, and also in Visual Studio the location for the folders /include,/include/win32, and /jdk1.8.0_202/lib for
jvm.lib, now I'm getting that it can't find the class file.
I tried the following (solution name "Article-JNI-1", project name "Example3", class file name "MyTest.class"):
- Leaving the class in "\Article-JNI-1\Exemple3" folder;
- Moving it to "\Article-JNI-1";
- Moving it to "\Article-JNI-1\x64\Debug";
- Changing code to
options.optionString = "-Djava.class.path=D:\\"; and moving the class there.
In all those situations I'm getting the same thing, the error from line 58:
cerr << "ERROR: class not found !";
While working with
jdk-17.0.1 it was working fine when running from Visual Studio. What am I missing/doing wrong?