Click here to Skip to main content
15,846,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov9-Jun-22 0:52
Victor Nijegorodov9-Jun-22 0:52 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 1:04
Valentinor9-Jun-22 1:04 
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 4:27
mveRichard MacCutchan9-Jun-22 4:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 7:21
Valentinor9-Jun-22 7:21 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov9-Jun-22 7:38
Victor Nijegorodov9-Jun-22 7:38 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 7:43
mveRichard MacCutchan9-Jun-22 7:43 
AnswerRe: Loading DLL from file not PATH Pin
Randor 10-Jun-22 7:54
professional Randor 10-Jun-22 7:54 
QuestionRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 4:26
Valentinor14-Jun-22 4:26 
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[0].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?
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 6:10
mveRichard MacCutchan14-Jun-22 6:10 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 6:41
Valentinor14-Jun-22 6:41 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 6:49
mveRichard MacCutchan14-Jun-22 6:49 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 9:33
Valentinor14-Jun-22 9:33 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 10:27
mveRichard MacCutchan14-Jun-22 10:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 10:14
Valentinor15-Jun-22 10:14 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 23:30
mveRichard MacCutchan14-Jun-22 23:30 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 9:52
Valentinor15-Jun-22 9:52 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 22:53
mveRichard MacCutchan15-Jun-22 22:53 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 23:23
Valentinor15-Jun-22 23:23 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 23:46
mveRichard MacCutchan15-Jun-22 23:46 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 0:12
Valentinor16-Jun-22 0:12 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 1:01
mveRichard MacCutchan16-Jun-22 1:01 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 1:37
Valentinor16-Jun-22 1:37 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 3:08
mveRichard MacCutchan16-Jun-22 3:08 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 6:22
mveRichard MacCutchan16-Jun-22 6:22 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 7:06
Valentinor16-Jun-22 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.