0

I'm unable to launch eclipse after I messed up with Current and CurrentJDK by executing following commands from post Can't get Maven to recognize Java 1.8

cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo rm Current
sudo ln -s /Library/Java/JavaVirtualMachines/<installed_jdk_version>.jdk/Contents Current
sudo rm CurrentJDK
sudo ln -s /Library/Java/JavaVirtualMachines/<installed_jdk_version>.jdk/Contents CurrentJDK

I'm getting below error: enter image description here

I also tried to reinstall java. But installer is terminating without completing or without giving any error. Please help as I'm completely stuck due to this.

Community
  • 1
  • 1
Pranalee
  • 3,389
  • 3
  • 22
  • 36

1 Answers1

1

Oops, why did you rm the system folder? In general do not, modify your system's lib files, unless you completely know what you are doing or what would be the side effects.

Now, you can download a dmg with a JDK, run the installer and restart your system. By the way try to remove the sym link that you created on the third line.

Have a look on the notes here (for the manual way of installing Java/Maven) on your mac.

There is also a tool called HomeBrew/Cask that eventually helps you deal with that kind of installation and path issues a lot easier. See here or here.

Hope that helps!

Community
  • 1
  • 1
javapapo
  • 1,342
  • 14
  • 26