当前位置: 技术问答>linux和unix
帮忙阿~我ubuntu 下的刚装的eclipse运行出现问题,是配置的问题么??
来源: 互联网 发布时间:2016-06-10
本文导语: 我的jre设置好了,文本可以编译执行,装了eclipse后,按照网上的配置后,我运行个helloworld就出现了下面的错误: Exception in thread "main" java.lang.NoClassDefFoundError: /usr/lib/jvm/ Caused by: java.lang.ClassNotFoundException: .usr.lib....
我的jre设置好了,文本可以编译执行,装了eclipse后,按照网上的配置后,我运行个helloworld就出现了下面的错误:
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/lib/jvm/
Caused by: java.lang.ClassNotFoundException: .usr.lib.jvm.
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: /usr/lib/jvm/. Program will exit.
大家来帮帮忙吧~~
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/lib/jvm/
Caused by: java.lang.ClassNotFoundException: .usr.lib.jvm.
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: /usr/lib/jvm/. Program will exit.
大家来帮帮忙吧~~
|
路径 没设置对,java好像有2种 东西的路径,