程序是这样的:
//HelloWorld.java
public class HelloWorld{
public static void main(String args[]){
System.out.println("HelloWorld!");
}
在dos下运行正常,但是用editplus运行时,编译可以通过,但是在运行时出现如下错误:
---------- java ----------
java.lang.NoClassDefFoundError: HelloWorld/java
Exception in thread "main"
输出完成 (耗时 0 秒) - 正常终止请高人指教,多谢!
//HelloWorld.java
public class HelloWorld{
public static void main(String args[]){
System.out.println("HelloWorld!");
}
在dos下运行正常,但是用editplus运行时,编译可以通过,但是在运行时出现如下错误:
---------- java ----------
java.lang.NoClassDefFoundError: HelloWorld/java
Exception in thread "main"
输出完成 (耗时 0 秒) - 正常终止请高人指教,多谢!
解决方案 »
- Eclipse 提示:无法解析导入javax.media
- 一半不是自己编写的,搞了1个多小时,结果编译还是出错了,请指教
- 如何使JComboBox中的某一项不能被选中,谢谢
- JDBC连接oracle,奇怪问题
- 高手帮忙解决下数据库的问题
- 初学者!冒泡法排序,请指教!
- Eclipse中的garbage collector如何打开
- 找不到class文件,希望高手帮帮偶!!急!!!!!
- 怎样在linux下用exec启动gnome-terminal,并向其发出ls等命令?
- 请教,SQL Server中的nvarchar在JDBC中映射为什么类型?
- java程序连接Access数据库~~谁告诉我一个纯java的驱动程序~~来实现~~
- 如何实现群聊?
public static void main(String args[]){
System.out.println("HelloWorld!");
}
少一个“}”,
这个我已经设置过了!