kivy / pyjnius

Access Java classes from Python
https://pyjnius.readthedocs.org
MIT License
1.4k stars 255 forks source link

No jvm.dll found #726

Open Fxztam opened 5 months ago

Fxztam commented 5 months ago

I work with Python 3.9, the JAVA_HOME=C:\Java\jdk-19.0.2 and get:

Exception: Unable to create jni env, no jvm dll found

cmacdonald commented 5 months ago

which version of jnius?

where is the actual DLL inside C:\Java\jdk-19.0.2?

MaxSchartmann commented 4 months ago

I have the same problem. I work with Python 3.11.9 though My DLL is inside C:\Program Files\Java\jdk-22\bin\server I tried to adjust the JAVA_HOME but it still didn't work Are there any suggestions what I can try out? I just want to apply a script I got sent, so I'm fairly new to coding. Tank you in advance

cmacdonald commented 4 months ago

I have made a branch that adds more information: https://github.com/cmacdonald/pyjnius/compare/master...dll

@Fxztam do you have a working Windows compiler environment that would be able to build and install jnius?