-
Notifications
You must be signed in to change notification settings - Fork 255
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
Python 3.8 cannot start JVM, when jnius_config is set. #486
Comments
Any comment on this? Nobody run in this problem so far? Not even @tshirtman ? |
Does the same code work on a different Python version? The code that searches for the JDK is a bit convoluted, I had to just add print() statements to figure out where it was looking. |
Hi @cmacdonald! Thanks for the answer! :) I tried the same (in the same environment) with Python 3.7.6 and it works! So it seems, that this is really an issue with Python 3.8... |
Hmmm, I had meant to write different Java version. There can be differences in the JDK layout between versions. For Linux, setting the JAVA_HOME env var really helps. |
Oh, I see. I tried it in a pure Python 3.8 environment with Java 8 on Windows 10, and the same problem occured. So I think it is something to do with Python 3.8 compatibility, but I can't put my finger on it. |
Hey, sorry for lack of answer, i've had to do some tricks for the windows build to work with python3.8, as they changed how the dll lookup work, i'm not sure that's 100% correct, but it worked for my tests. i think that was it https://github.com/kivy/pyjnius/blob/master/.github/workflows/create.yml#L55 but it's been a few months. |
Sorry for the late answer, I did not notice your comment so far. :( However, now I tried the whole procedure I wrote at my first comment on this issue, and it still don't work with pyjnius 1.3.0. I looked at your file, but I don't know, how to test it for myself. Can you give me directions to it? |
I had issues with OpenJDK on Linux, and ended up rewriting a lot of the boot code. |
How well does this work if you try a JDK that is not installed via Anaconda? |
I am experiencing the same issue, the JVM is not starting when I try to set options.
Example:
Output:
I am not using Anaconda. |
As a workaround I am setting the environment variable
|
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. |
Hi guys,
I have the following problem. I installed pyjnius (version 1.2.1) using Anaconda (with Python 3.8.1). Anaconda is really comfortable, it installs a JDK as well. As far as I'm concerned, everything needed is installed, and the environment variables are set (both JAVA_HOME is correct and jvm.dll is added to the path). And the good news is, that the
snippet work flawlessly. The problem starts, when I want to set some JVM options. This code snippet does not work:
I get the following error message:
I was able to find this part of code in the source, which is in the ./jnius/jnius_jvm_desktop.pxi from line 50-70. The problem is, that I can't see, what is the problem! The args variable is set, filled up with the options global variable coming from jnius_config. But I can't see, that the non-empty args variable how can cause the JVM to fail. Especially with valid switches...
Can you help me solve this?
My system is:
Windows 10 64-bit
Anaconda 3 2019.10
Python 3.8.1
Pyjnius 1.2.1
OpenJDK 11.0.1
Cheers,
Csega
The text was updated successfully, but these errors were encountered: