-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM DLL not found in the directory where it actually is #777
Comments
Try the instructions in the directory Alternatively you may want to try WSL2 on window10. That configuration works well for me. |
Thanks for the fast response! I tried the instructions. Found that the architecture for python and jvm.dll is correct. I looked up the dependencies and found: I tried testing the JVM, however, I did not quite understand what to do. I ran CL.EXE test.JVM.cpp in the native tools command prompt, but got this error: I am not a software engineer, so some of this is magic to me. Any ideas for what I can try next to solve this? I just want to get Jpype up and running because I need it for PyNetlogo to work. |
The list of dependencies does not match the one in the readme file. So I checked that version.
This is really odd. There are no dependencies listed that are for Java dlls. The dlls for Java on that version are located in I believe you must has a typo on the test command. The command works from the Visual studio command prompt without issues.
With the jre directory in the PATH and pointing to the DLL I get.
Assuming the test script doesn't pick up the error, my suggestion would be to try a different JVM perhaps install Corretto 11. https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html |
Did you manage to resolve this? |
Unfortunately, no. I did add C:\Program Files\Java\jdk1.8.0_242\jre\bin to PATH, but that did not resolve the problem. I started off with a different JVM, but after it did not turn out to work I switched to this one since this is the version that I have on my pc which does function correctly there. I ended up giving up on making this work since I could make use of some server capacity at the university. Although not optimal, due to time constraints I had no choice but to work with that, since I had already spend a few days on this problem and I need my time for writing my thesis. Thanks for your time and effort anyway! I hope a solution may be found soon and people do not need to go through the same struggle as I did. |
We had the same issue when trying to use pynetlogo with jpype. |
Hello!
I'm running into a problem with JPype and hope anyone can help me. I'm trying to run NetLogo in python using PyNetLogo, which runs JPype for setting up JVM. On my own pc: win10 64bit with 64 bit Python, NetLogo and Java everything works fine. Since my pc is not powerful enough for running my simulations in a decent amount of time, I'm trying to run them on a VM with win10 on a server. I installed all the packages and software as I did on my own computer, however, now I run into the following error whilst running startJVM:
OSError: [WinError 126] JVM DLL not found: C:\Program Files\Java\jre1.8.0_241\bin\server\jvm.dll
However, where Jpype is not able to find the dll, is actually where it is. I found online that I needed to add JAVA_HOME to my environment variables, and add jre\bin to PATH. I also tried specifying the path manually using r"filepath\folder" and with double \ and with normal slashes as opted in a few discussions. All of these solutions did not resolve the issue unfortunately and now I have ran out of ideas. Any suggestions?
Hopefully someone can help out with this problem!
Thanks in advance
The text was updated successfully, but these errors were encountered: