Reinstall Java 7 JDK on OSX

I tried installing Java 7 (aka 1.7) on OSX 10.7.5 (Lion).

Unfortunately, it seems that all this has mixed up Java, and I'm not sure how to solve the problem. Currently, when I try to start Eclipse, I get an error:

The JVM shared library "/System/Library/Frameworks/JavaVM.framework" does not contain the JNI_CreateJavaVM symbol.

Programs such as Minecraft and PhpStorm will be completely destroyed without errors.

Running "java -version" in the terminal gives me:

java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) 

Which, I understand, should be expected with a direct installation of Java 7. Unfortunately, Utilities β†’ Java Settings have been removed in OSX 10.7.5, and an attempt to load System Preferences β†’ Java Panel does not work (this says that it opens in a new window, but does not appear when a button appears to reload it by clicking it to do nothing).

I tried reinstalling various versions of JRE and JDK to no avail.

Is there anyway to lay out the lot and start again, or am I missing something really obvious?

+12
java installation macos
Dec 10 '12 at 17:59
source share
3 answers

Find out where the installation directory of your Java 7 on your Mac OS X is located. Set the JAVA_HOME shell variable to this directory (the directory must contain the bin and lib subdirectory). Edit the path to export PATH="${JAVA_HOME}/bin:${PATH}" . Try java -version .

If all else fails, you may need to reinstall the OS to return the default values ​​for Mac Java and just reinstall Java 7.

I had a similar problem in Mountain Lion (10.8): after installing the Java 7 SDK, I removed the Java 6 JRE installed by Apple. It ruined my computer, especially Eclipse. The problem is that Apple released the official Java JRE for Mac OS X until Java 7 came out, and Oracle became the official supplier of this version. After I reinstalled the OS, I was able to get a help window that asked me about loading the Java runtime. This will reinstall the Java Java 6 JRE.

+3
Dec 25 '12 at 23:15
source share

I had the same problem. I tried several solutions, but in the end, installing Java for OSX from the Apple website fixed it.

http://support.apple.com/kb/DL1572?viewlocale=en_US

+3
Jan 25 '14 at 16:17
source share

For others facing this problem, you can try installing the latest jdk from Apple:

stack overflow

0
Nov 08 '14 at 4:29
source share



All Articles