Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Loading DLL from file not PATH Pin
Victor Nijegorodov8-Jun-22 23:16
Victor Nijegorodov8-Jun-22 23:16 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor8-Jun-22 23:48
Valentinor8-Jun-22 23:48 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov8-Jun-22 23:52
Victor Nijegorodov8-Jun-22 23:52 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 0:04
Valentinor9-Jun-22 0:04 
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 3:27
mveRichard MacCutchan9-Jun-22 3:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor9-Jun-22 6:21
Valentinor9-Jun-22 6:21 
GeneralRe: Loading DLL from file not PATH Pin
Victor Nijegorodov9-Jun-22 6:38
Victor Nijegorodov9-Jun-22 6:38 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan9-Jun-22 6:43
mveRichard MacCutchan9-Jun-22 6:43 
AnswerRe: Loading DLL from file not PATH Pin
Randor 10-Jun-22 6:54
professional Randor 10-Jun-22 6:54 
QuestionRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 3:26
Valentinor14-Jun-22 3:26 
AnswerRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 5:10
mveRichard MacCutchan14-Jun-22 5:10 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 5:41
Valentinor14-Jun-22 5:41 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 5:49
mveRichard MacCutchan14-Jun-22 5:49 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor14-Jun-22 8:33
Valentinor14-Jun-22 8:33 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 9:27
mveRichard MacCutchan14-Jun-22 9:27 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 9:14
Valentinor15-Jun-22 9:14 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan14-Jun-22 22:30
mveRichard MacCutchan14-Jun-22 22:30 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 8:52
Valentinor15-Jun-22 8:52 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 21:53
mveRichard MacCutchan15-Jun-22 21:53 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 22:23
Valentinor15-Jun-22 22:23 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan15-Jun-22 22:46
mveRichard MacCutchan15-Jun-22 22:46 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor15-Jun-22 23:12
Valentinor15-Jun-22 23:12 
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 0:01
mveRichard MacCutchan16-Jun-22 0:01 
GeneralRe: Loading DLL from file not PATH Pin
Valentinor16-Jun-22 0:37
Valentinor16-Jun-22 0:37 
The thing is that when Java is installed it doesn't add some kind of dynamic link in PATH to where jvm.dll is located, well it doesn't add one at all.
Yes, if I'm compiling the class with 1.8 and then on VM I can manually add in PATH the server folder, but here is a problem, the user should not go though this process of opening variables and find PATH to add it there.
A solution would be that when the app is opened, it would check if Java in installed, if it is not, then the user would be prompted to download it, or I have to search and see if you can legally distribute JavaSetup8uxxx.exe file and if you can the app would automatically run the file and the user would go though the process of installing Java. After Java is installed by either way then the app will search what version is installed to know what location to add in PATH, which it would do after knowing that. At this point the app will run fine.
BUT then you run into another problem, if the user updates Java then the location will change for jvm.dll, so you would have to add another variable to PATH with the new location for it, and remove the old one.

Adding a variable to PATH shouldn't be a problem, as Java and other programs do it too, I'll just have to see how that is done from C++ code.

If this is actually the only way to do it, then I guess I can do it this way, but having another solution that wouldn't involve adding variables to PATH would have been better.
GeneralRe: Loading DLL from file not PATH Pin
Richard MacCutchan16-Jun-22 2:08
mveRichard MacCutchan16-Jun-22 2:08 

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.