Exception in thread "main" java.lang.NoClassDefFoundError: Hello
来源:百度知道 编辑:UC知道 时间:2024/05/22 13:46:58
我的平台是J2ee的
源文件如下:
public class Hello
{
public static void main(String args[])
{
System.out.println("早上好,Good Morning");
}
}
用javac Hello.java编译成功
但是用java Hello却出现(Exception in thread "main" java.lang.NoClassDefFoundError: Hello)
请高手帮我解答
源文件如下:
public class Hello
{
public static void main(String args[])
{
System.out.println("早上好,Good Morning");
}
}
用javac Hello.java编译成功
但是用java Hello却出现(Exception in thread "main" java.lang.NoClassDefFoundError: Hello)
请高手帮我解答
总结:
java.lang.NoClassDefFoundError检查步骤:
1、java -version命令看看你的JDK版本号
2、检查你的Path和Classpath,看看有没有冲突的
3、就是检查你的JRE版本是不是和JDK保持同步了。
资料来源于互联网
classpath 环境变量中加入你的java的 bin lib 和 .
Exception EOleSysError in module
英语作文,主题:in th park
Realistic novel in the 18th century
on June 5th和in June
Christmas in the 13th Month
nothing in thé world 是什么意思?
Report ranks China 6th in overall strength 怎么翻译?
谁能告诉我feminism in 17th century 在英国
The film was released on 11th July in China
Fashions in America before the 19th century_____those of Egland.