VM macosx初始化期间发生错误 [英] Error occurred during initialization of VM macosx

查看:80
本文介绍了VM macosx初始化期间发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到一些与此标题有关的问题. 我已经检查了它是否有解决方案,但是没有.

I see a few question with this title already. I have checked it, if it has a solution for me, but not.

我在.bash_profile中安装了1.7的Java 1.6,我将JAVA_HOME导出为1.6进行了导出.我已经删除了,并且已经删除了所有与Java/sdk相关的东西,我想我也从osx中删除了一些我不应该的东西:)

I had a java 1.6 installed the 1.7 in .bash_profile I hade an export with JAVA_HOME poiting to 1.6. I have removed and I have removed all Java / sdk related stuff, and I think I have removed from osx something too, what I shouldn't :)

我已经安装了1.7.0_13的64位版本,现在它不在PATH的bin文件夹中,因此,如果我在那里导航并双击Java,它将显示以下输出:

I have installed the 64 bit version of the 1.7.0_13, now it isn't at the bin folder in the PATH, so if I navigate there and doubleclick on Java it will have this output:

/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java ; exit;
Error occurred during initialization of VM
java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:542)
    at java.lang.System.initProperties(Native Method)
    at java.lang.System.initializeSystemClass(System.java:1115)

logout

太好了,没有发现什么?怎么解决呢?我现在无法启动任何基于Java的程序.

Great, what is not finding? How to solve it? I can't launch any java based program now.

OSX版本10.8.2

OSX version 10.8.2

如果我按下该按钮,则无效!

No effect that button if I press it!

PS Appengine需要1.7才能让我从Eclipse登录,否则1.6不够,否则是带有无效请求的错误消息.

PS Appengine needs 1.7 to let me login from Eclipse, not enough the 1.6 otherwise is an error message with invalid request.

基于评论的更新:

otool -L /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java
/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java:
    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
    /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 55110.0.0)
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.19.0) 

推荐答案

回退已删除的/System/Library/Frameworks/条目:)

这篇关于VM macosx初始化期间发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆