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

JAVA_HOME is set as /Users/username/.jenv/versions/system but no java executable was found #369

Open
igorbeslic opened this issue Jul 8, 2022 · 3 comments · May be fixed by #430
Open
Milestone

Comments

@igorbeslic
Copy link

igorbeslic commented Jul 8, 2022

OS: macOS Monterey v12.4
default shell: fish

Hi I'm trying to launch Java based application installer (point and click) and in pop-up window I get:
There has been an error. JAVA_HOME is set as /Users/igorbeslic/.jenv/versions/system but no java executable was found

Can anyone help me figure out how to properly setup system version?

Here is some output from fish shell:

 jenv versions
  system
  1.8
  1.8.0.202
  11.0
  11.0.11
  11.0.2
  12.0
  12.0.2
  openjdk64-11.0.2
  openjdk64-12.0.2
* oracle64-1.8.0.202 (set by /Users/igorbeslic/.jenv/version)
  zulu64-11.0.11
which java
/Users/igorbeslic/.jenv/shims/java
jenv version system
oracle64-1.8.0.202 (set by /Users/igorbeslic/.jenv/version)
cat /Users/igorbeslic/.jenv/version
oracle64-1.8.0.202
java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
jenv doctor
[OK]	No JAVA_HOME set
[OK]	Java binaries in path are jenv shims
[OK]	Jenv is correctly loaded
@vifeng
Copy link

vifeng commented Mar 31, 2023

To make sure JAVA_HOME is set, make sure to enable the export plugin:
jenv enable-plugin export exec $SHELL -l
then follow 1.2 Adding Your Java Environment
source : https://github.com/jenv/jenv

@premedios
Copy link

This is not working for me! JAVA_HOME is still not being set!!!

@andrewflbarnes
Copy link
Contributor

andrewflbarnes commented Mar 16, 2024

This will be addressed once #350 and #430 are merged - I'll create a new release once they are.

@andrewflbarnes andrewflbarnes added this to the 0.5.8 milestone Mar 21, 2024
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

Successfully merging a pull request may close this issue.

4 participants