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

allow specifying any jvm arguments for starting JVM #4

Closed
behrica opened this issue Sep 26, 2022 · 2 comments
Closed

allow specifying any jvm arguments for starting JVM #4

behrica opened this issue Sep 26, 2022 · 2 comments

Comments

@behrica
Copy link
Owner

behrica commented Sep 26, 2022

at least "java properties" but as well all arguments related to "java module system".

Workaround is to set environment variable "_JAVA_OPTIONS

export _JAVA_OPTIONS="-Dlibpython_clj.manual_gil=true"
@behrica
Copy link
Owner Author

behrica commented Nov 1, 2022

One issue preventing to advance is this:

CellProfiler/python-javabridge#19

even when PR clj-python/libpython-clj#228

gets merged.

Certain forms of "aliases", like:

:jdk-17
           {:jvm-opts ["--add-modules" "jdk.incubator.foreign"]}

might not work.

while this will work:

:jdk-17
           {:jvm-opts ["--add-modules=jdk.incubator.foreign"]}

@behrica
Copy link
Owner Author

behrica commented Nov 20, 2022

closed in 0.0.8
with commit 91510d6

The above issue on the "format" of the JVM properties is still open.
CellProfiler/python-javabridge#19

Workaround is to specify the jvm properties in the alias as

{:jvm-opts ["--add-modules=jdk.incubator.foreign"]}

and not as

{:jvm-opts ["--add-modules" "jdk.incubator.foreign"]}

Clojure works with both in the same way.

@behrica behrica closed this as completed Nov 20, 2022
behrica added a commit to behrica/libpython-clj that referenced this issue Nov 20, 2022
available since clojurebridge 0.0.8:

See here for background on this feature.
behrica/clojurebridge#4
cnuernber pushed a commit to clj-python/libpython-clj that referenced this issue Nov 20, 2022
available since clojurebridge 0.0.8:

See here for background on this feature.
behrica/clojurebridge#4
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