Linked Questions
67 questions linked to/from How to set or change the default Java (JDK) version on macOS?
3
votes
1
answer
7k
views
java version update to 11 still shows 8 [duplicate]
I am using macOS Monterey (v 12.0.1). Below is my Java version :
$ java -version
java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server ...
-1
votes
2
answers
2k
views
How to set JAVA_HOME environment variable in macOS [duplicate]
I am new to macOS. I know this question has been asked a lot before but all mentioned methods are not work for me.
I have tried https://www.youtube.com/watch?v=_gdpclEE-kA one also but it displayed an ...
0
votes
2
answers
519
views
How to switch between releases of Java on Mac OSX? [duplicate]
I have 3 releases of Java 8 installed on Mac OSX. I need to switch temporarily to an older release, because a program I use has a problem with the newer release.
/Library/Java/JavaVirtualMachines &...
1
vote
0
answers
240
views
Change Java version in a terminal session (Mac OSX) [duplicate]
How do I change the Java version in a terminal session? I don't want to change my system preferences, or my default JRE/JDK. Only for the current terminal session. My OS is Mac OSX, but for completion ...
0
votes
0
answers
91
views
Java version can't be switch in MAC os it always set 1.6.0 like default [duplicate]
i want to change my java version from 6 to 8. But in terminal it always active as java 6 i have run this command : export JAVA_HOME=/usr/libexec/java_home -v 1.8.0_271
but it always show as java 1.6.0 ...
314
votes
18
answers
242k
views
Homebrew cask option not recognized?
I am following an online resource for installing two Mac utilities
http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/
Here is the pertinent section:
Install ...
217
votes
45
answers
286k
views
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
After typing cordova run android in terminal, I'm getting this error:
Waiting for emulator to start...
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/Users/username/Library/...
505
votes
11
answers
474k
views
How do I install Java on Mac OSX allowing version switching?
I want to install OpenJDK Java on Mac OSX and have it work alongside other JDK's since it is a newer release. Currently, I downloaded the tar.gz and placed it in my path but that is hard to maintain. ...
298
votes
14
answers
516k
views
How to brew install java?
I'd like to setup java on a new OS X machine, and prefer to use brew for OS X package management. How can I install latest java using brew?
245
votes
22
answers
637k
views
How can I fix "unsupported class file major version 60" in IntelliJ IDEA?
I have a Gradle project in Ubuntu. It's written in Java 14. I have the Java 14 JDK installed. When I build it from the command line, everything works, but no one wants to use a command line! When ...
125
votes
36
answers
289k
views
Cordova : Requirements check failed for JDK 1.8 or greater
I am using Cordova 6.4.0 in Windows 7 OS, but I get this error once I tried to build the android version :
The Java Home variable is setted correctly to the JDK path, but I don't know why I am ...
321
votes
11
answers
411k
views
Installing Java on OS X 10.9 (Mavericks)
I have installed the JDK on Mac OS X v10.8 (Mountain Lion). When I upgraded it to Mac OS X v10.9 (Mavericks) and ran java -version in the terminal, it showed:
No Java ...
145
votes
14
answers
173k
views
How can I change Mac OS's default Java VM returned from /usr/libexec/java_home
(Wasn't sure if this should go on SU... migration is certainly an option, but more programmers read questions here, so here goes).
I am running Mac OS X 10.8.4, and I have Apple's JDK 1.6.0_51 ...
110
votes
11
answers
120k
views
React Native error: "Could not determine java version from '9.0.1'."
I'm working on MacOS and just starting with react-native.
One of the first steps to get started is to run: react-native run-android or react-native run-ios. But I'm getting this error:
react-native ...
86
votes
7
answers
79k
views
Eclipse Kepler for OS X Mavericks request Java SE 6
I have just made a clean installation of OS X Mavericks, and I have downloaded Eclipse Kepler , but if I execute it, gives me this message:
Asking me to install Runtime Java SE 6; I have already ...