Mac OS, JDK1.7 (and 1.8) does not contain the JNI_CreateJavaVM symbol

后端 未结 3 573
鱼传尺愫
鱼传尺愫 2020-12-30 20:00

I need to run Eclipse Kepler on Mac OS through a JDK 1.7 (This is required by the PyDev plugin).

The problem is that although I have managed to install the 1.7 jdk a

3条回答
  •  北海茫月
    2020-12-30 20:52

    Right click on the Eclipse icon and select 'show package contents'. Inside the contents directory you'll find a file called 'Info.plist'. Scroll down to the bottom of the file till you find this

    Eclipse
        
            
    

    Notice the commented out section. Move the jdk path declaration out of the comments section. It should look like this now.

    Eclipse
        
          -vm/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java
            
    

    Last step, browse to /Library/Java/JavaVirtualMachines and check the jdk package name present there. Replace the jdk version in the above command with that.

    /Library/Java/JavaVirtualMachines/{your_jdk_package_name}/Contents/Home/bin/java
    

    Optional: On some machines you may have to close the finder after you've done all this, navigate to the eclipse folder and click on eclipse again for it to work.

提交回复
热议问题