Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Java is a cross-platform programming language created by Sun Microsystems and is now owned by Oracle. Do not confuse this tag with JavaScript or JScript. Questions about installing/running Java on macOS are welcome, questions about Java programming must be asked on StackOverflow.
12
votes
How can I upgrade my mac to OpenJDK 11 using Homebrew?
At this point, assuming that no newer version of Java or Java JDK is installed, java -version shows me openjdk version "11.0.3" and javac --version shows me javac 11.0.3 (with no JAVA_HOME environment … (shows both AdoptOpenJDK and the Oracle JDK)
brew search java (see notes below)
According to this article, newer versions of Java JDK from Oracle are under GPL v2 license with a Classpath exception …
12
votes
2
answers
28k
views
How can I upgrade my mac to OpenJDK 11 using Homebrew?
If I would have an older version of Java JDK on my mac such as Java SE 8 or OpenJDK 8, what would be a quick way to upgrade to OpenJDK 11 using Homebrew (using the brew command)? …
18
votes
4
answers
11k
views
What if there is an error message that adoptopenjdk8 exists in multiple taps?
When brew cleanup shows the following error message:
Error: Cask adoptopenjdk8 exists in multiple taps:
homebrew/cask-versions/adoptopenjdk8
adoptopenjdk/openjdk/adoptopenjdk8
How can I resolve …
19
votes
What if there is an error message that adoptopenjdk8 exists in multiple taps?
Here is a quick solution which assumes that Homebrew is up-to-date and there is no need to use any other packages from the adoptopenjdk/openjdk tap:
Check the state of adoptopenjdk/openjdk tap and ad …
7
votes
2
answers
9k
views
How can I upgrade from Oracle JDK 8 to OpenJDK 8 using Homebrew and be sure it will be used ...
If I have Oracle Java SE JDK 8 installed on my mac, how can I upgrade to Open JDK 8 and be sure it will be used by default? … links Oracle JDK 8 will not receive free updates after January 2019 for commercial use, not even security updates:
https://java.com/en/download/release_notice.jsp
https://medium.com/@javachampions/java-is-still-free-c02aef8c9e04 …
7
votes
Accepted
How can I upgrade from Oracle JDK 8 to OpenJDK 8 using Homebrew and be sure it will be used ...
-version
javac -version
And the following commands confirmed that I have both Java SE 8 and OpenJDK 8 installed:
/usr/libexec/java_home -V
ls /Library/Java/JavaVirtualMachines
Note that which java … /t/how-to-install-openjdk-with-brew/712
https://github.com/AdoptOpenJDK/homebrew-openjdk#other-versions
https://medium.com/notes-for-geeks/java-home-and-java-home-on-macos-f246cab643bd
How to update Java …