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

jpy does not work with JAVA_HOME set via jenv #86

Open
chipkent opened this issue Aug 29, 2022 · 2 comments
Open

jpy does not work with JAVA_HOME set via jenv #86

chipkent opened this issue Aug 29, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@chipkent
Copy link
Member

jenv is a mac utility for switching between different java versions. jenv has an export plugin to set the JAVA_HOME to the selected version.

See here for details on enabling the export plugin.
https://github.com/jenv/jenv

When using jenv plus the export plugin, the JAVA_HOME does not work with jpy.
The JAVA_HOME is a symlink. Possibly this is causing problems.
If JAVA_HOME is set to <JAVA_HOME_from_jenv>/libexec/openjdk.jdk/Contents/Home, then jpy works properly.

@chipkent chipkent added the bug Something isn't working label Aug 29, 2022
@chipkent chipkent changed the title jpy does not work with JAVA_HOME set via jenv jpy does not work with JAVA_HOME set via jenv Aug 29, 2022
@fabrice-ducos
Copy link

Hello,

Have you checked your JENV_FORCEJAVAHOME and JENV_FORCEJDKHOME environment variables?

@sc68cal
Copy link

sc68cal commented Mar 8, 2023

Hi, the hint about JAVA_HOME being a symlink bit me as well. I am using homebrew to manage openjdk and had to set my JAVA_HOME to be /opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home for it to work properly on my machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants