MacOSX Snow Leopard and Eclipse: Error starting Eclipse (No Java virtual machine…)

后端 未结 7 2057
自闭症患者
自闭症患者 2020-12-18 05:46

This is so frustrating.

I did no update of java nor eclipse and suddenly I can\'t open eclipse. I even didn\'t install any other programs. Here is the error:

7条回答
  •  春和景丽
    2020-12-18 06:19

    You need to create a file ~/.MacOSX/environment.plist and add JAVA_HOME => /Library/Java/Home entry into it. If you have XCode installed, use it to add entry. Otherwise, use plain text editor:

    
    
    
    
        JAVA_HOME
        /Library/Java/Home
    
    
    

    After that, restart MaxOS or logout/login.

    See http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html for details.

    Cheers, Max

提交回复
热议问题