-1

When i hit this command /usr/libexec/java_home -V i found two java version in my mac terminal:

Matching Java Virtual Machines (2):

15.0.1 (x86_64) "Oracle Corporation" - "OpenJDK 15.0.1" /Users/xyz/Library/Java/JavaVirtualMachines/openjdk-15.0.1/Contents/Home
1.8.0_281 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home

/Users/xyz/Library/Java/JavaVirtualMachines/openjdk-15.0.1/Contents/Home

I want to remove openjdk 15.0.1 i have tried some solution from internet but nothing is working. Any help will be appreciated.

Ab123
  • 415
  • 2
  • 13
  • 34

1 Answers1

0

To uninstall Java, you must have administrator privileges and execute the remove command either as root or by using the sudo command

Then run:

sudo rm -rf /Users/xyz/Library/Java/JavaVirtualMachines/openjdk-15.0.1
fsimon
  • 598
  • 3
  • 6
  • 18