I'm having some problems trying to install the last version of Oracle Java JDk on my Mac running macOS Catalina 10.15.7. Brief, when I use the java -version command I get this information:
I never ever installed Zulu, does it come with the Mac or do I have it because I have anaconda navigator? Sorry but I don't use very often Java, I'm more a Python person
Anyways, I also tried to uninstall Java completely and install Java from scratch, but I still get that version and Zulu.
I would be extremely grateful if someone could tell how to get rid of Zulu or if I can use Oracle Java JDK without uninstalling Zulu.
Thank you very much in advance
rm -rf /Library/Java/JavaVirtualMachines/
供参考 - 在 ubuntu 18.04 中 - 以下内容可以:
rm -rf /usr/lib/jvm/*zulu*
rm -rf /var/lib/dpkg/info/zulu*
The website uninstall page is changed to this:
https://docs.azul.com/core/zulu-openjdk/uninstall/macos
Launch Terminal and navigate to the JavaVirtualMachines
directory:
cd /Library/Java/JavaVirtualMachines/
# Display the list of directories:
% ls -1
zulu-11.jdk
zulu-13.jre
zulu-15.jdk
Each directory corresponds to a version of Azul Zulu.
To uninstall a specific version of Azul Zulu, use the following command:
sudo rm -rf <zulu_directory>
# For example, to uninstall Azul Zulu 11 JDK, run:
sudo rm -rf zulu-11.jdk
There are two other locations that should not be rm
as they are shipped with the macOS
these are
# java_home
/usr/libexec
# java
/usr/bin/
# try to find them using
# at /usr/bin/ for example
#/usr/bin
ls -lgh | grep java | xargs -I {}
# you will get all the wheel
-rwxr-xr-x 52 wheel 164K May 10 06:30 java
-rwxr-xr-x 52 wheel 164K May 10 06:30 javac
-rwxr-xr-x 52 wheel 164K May 10 06:30 javadoc
-rwxr-xr-x 52 wheel 164K May 10 06:30 javah
-rwxr-xr-x 52 wheel 164K May 10 06:30 javap
-rwxr-xr-x 52 wheel 164K May 10 06:30 javapackager
-rwxr-xr-x 52 wheel 164K May 10 06:30 javaws
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.