我正在尝试使用Eclipse打开SDK Manager,但会出现以下错误:
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:346)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.doAction(Main.java:320)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.run(Main.java:120)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.main(Main.java:103)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.net.URLClassLoader$1.run(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.net.URLClassLoader$1.run(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.security.AccessController.doPrivileged(Native Method)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.net.URLClassLoader.findClass(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(Unknown Source)
[2013-12-16 23:21:25 - SDK Manager] [SDK Manager] ... 4 more
我几乎尝试过所有事情:
等等..
真正奇怪的是,今天我在另一台计算机上运行Eclipse几乎和我的一样,并且像魔法一样,它工作得很好,我打开了SDK Manager而没有错误。
我没弄明白有什么区别。两台计算机都使用Windows 7 Pro 64位。 Java路径也是一样的。
那么,任何人都可以帮助我吗? = /
答案 0 :(得分:7)
我修好了! 刚刚输入环境变量并删除了以下内容:
我无法解释它为何有效,但现在没关系! :P