I have multiple versions of java, so i want to delete one of them.
go to - /Library/Java/JavaVirtualMachines
Type ls and will see these below versions of java present in my machine.
jdk1.8.0_231.jdk openjdk-11.0.2.jdk openjdk-14.0.1.jdk
I want to remove java 14 - so type the command : sudo rm -rf openjdk-14.0.1.jdk
Now type ls and will see the below versions, now java 14 has been removed from System. jdk1.8.0_231.jdk openjdk-11.0.2.jdk
go to - /Library/Java/JavaVirtualMachines
Type ls and will see these below versions of java present in my machine.
jdk1.8.0_231.jdk openjdk-11.0.2.jdk openjdk-14.0.1.jdk
I want to remove java 14 - so type the command : sudo rm -rf openjdk-14.0.1.jdk
Now type ls and will see the below versions, now java 14 has been removed from System. jdk1.8.0_231.jdk openjdk-11.0.2.jdk
Tags:
Dev