Skip to content
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

Main JImports docs doesn't mention how to enable the import behaviour #1096

Open
pelson opened this issue Oct 19, 2022 · 0 comments
Open

Main JImports docs doesn't mention how to enable the import behaviour #1096

pelson opened this issue Oct 19, 2022 · 0 comments

Comments

@pelson
Copy link
Contributor

pelson commented Oct 19, 2022

The docs in https://jpype.readthedocs.io/en/latest/imports.html never actually tell you how to start the JImport mechanism. As a result, that page only has limited usefulness. Ironically, the place when it is mentioned https://jpype.readthedocs.io/en/latest/api.html?highlight=import#jpype-imports-module links to the page with less detail.


(as an asside)

I've made a case in the past that the imports system is nice, but unfortunately a bit crippled by the need to have runtime requirements (like a running JVM). What I would love is if we had something more declarative and lazy, such that:

from java_packages.java.lang import String  # (java_packages name to be discussed)

Will work just fine without the JVM running, but String("foo") would raise a JVMNotRunning exception if the code is run without having previously started the JVM.

@pelson pelson changed the title Mail JImports docs doesn't mention how to enable the import behaviour Main JImports docs doesn't mention how to enable the import behaviour Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant