-
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
Usage without JDK #699
Comments
I had some thoughts about this.
|
Thanks for the nice comments, let me share my thoughts and ideas about it: My comments on your nice thoughts
I definitely agree with this, I don't think Pyjnius should be limited in this sense.
I also agree with this, I don't believe necessarily that Pyjnius should be concerned by packaging, in my view, the ideal setting would just be to allow the user of Pyjnius to select a JRE that is different from the one at JAVA_HOME!
I'm sorry, I confess my lacks in understanding how Pyjnius works. While I think it makes perfect sense that the full JDK is needed when building, at the same time I would expect Pyjnius's runtime requirements from the jdk to be some subset of the JDK, and, specifically, the union between the set of JDK modules needed by the running application + some set of extra JDK modules required by Pyjnius itself (say, e.g. the Reflection API). The use case I have in mindMy use case is pretty simple, I want to deliver a python package installable from pip (just like pyjnius), and I want to provide the right JRE to run the package so that:
Are these comments helpful on the topic? Please let me know if they are not :) |
OpenJDK is available in Conda. Why not specify conda, and then not have to be bothered with repackaging openjdk for pip.
I widely agree with whats written here. We can investigate further (could you try to switch JAVA_HOME to a JRE and see if jnius continues to work). |
Hello there, sorry for the late reply. |
Thanks for the report. Probably some GitHub actions could be made that test this too. |
Testing confirms jnius works with only a JRE - see #705. |
Hello,
I cannot find docs/other issues on this topic, so I considered using a new issue.
In recent versions of Java, tools likeJava modules and
jlink
made it extremely easily to build tailor-made JREs that select only the parts of the JDK that are used by the target Java library.I was thinking that it would be really cool if there was a way to use that JRE, to avoiding completely the extra step for the user of installing and switching to the appropriate version of the JDK.
Why is this not possibile? Are there known challenges in that?
The text was updated successfully, but these errors were encountered: