-
Notifications
You must be signed in to change notification settings - Fork 366
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 not set on apple m1 #339
Comments
I was able to get this working by doing the following:
To view the file:
Verify in a new shell:
If you're using an IDE or another tool, you'll have to restart it. (This worked for me when using IntelliJ and spawning Maven). |
I'm having the same issue,
With the following being in my
I didn't actually have the file
|
Exactly same issue on my MacBook Pro M1. Because of that Maven is using incorrect version of Java (I need it to pick up Java 11):
|
Same problem here on a M1 Mac. Using Kotlin Multiplatform Build which runs from xCode with a |
Got the same problem and I got it fixed by running: |
For me, I fixed it just by running |
Same issue jenv: version `ibm64-1.8.0.302' is not installed |
I was having the same problem here, but not with a GUI application so I knew After banging my head against the wall for way too long, I finally figured out that the init-caching I use in my shell configuration had cached the |
MacBook Air M1. you also need to exec: Then enable the export plugin: I found that if PATH is not set correctly, jenv wouldn't set JAVA_HOME even if the plugin is enabled |
jenv 0.5.4
I execute follow steps on my m1 MBA and intel MBP:
The intel MBP works fine while the m1 MBA not.
Environment info of the m1 MBA:
The text was updated successfully, but these errors were encountered: