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

JDK name mismatch of jenv versions and JAVA_HOME -v #363

Open
lisp19 opened this issue Jun 7, 2022 · 0 comments
Open

JDK name mismatch of jenv versions and JAVA_HOME -v #363

lisp19 opened this issue Jun 7, 2022 · 0 comments

Comments

@lisp19
Copy link

lisp19 commented Jun 7, 2022

jenv version: 0.5.5
OS: MacOS 12.4
Maven version: 3.8.5
Description:
I tried to use jenv to manage all my local jdk versions, including Azul Open JDK and Oracle JDK. For Java 11 and 17, everything works fine except those already mentioned in issues before. However, for Oracle JDK 1.8.0_202 and Azul JDK 1.8.0.322, jenv can change the java version but won't work on maven. With maven plugin enabled, I use jenv to change jdk to 1.8.0.322, zsh command can do it, but maven just can not recognize it. Shown below in the figure.
image
I found that the problem is caused by the mismatch of JDK name in JAVA_HOME and jenv. In jenv, it is described as "1.8.0.322" but in JAVA_HOME -v, it is "1.8.0_322".
image
image
I tried the method below to fix it. I replace the wrong name given by jenv manually in ~/.mavenrc, and it works fine.
image
image
I think it is a problem so I report here. Hope it can be fixed soon, thank you! Sorry if it is an existing question.

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