| 发表于:2007-02-12 13:44:40 楼主 |
我的环境配置: java_home:c:\j2sdk1.4.2_06 path:%java_home%\bin classpath:%java_home%\lib java文件代码: import javax.swing.joptionpane; class demo1{ public static void main(string args[]){ joptionpane.showmessagedialog(null, "helloword! ", "helloword ",joptionpane.information_message); system.out.println( "helloword "); } } 编辑通过,生成class文件. cmd:java demo1 error:exception in thread "main " java.lang.noclassdeffounderror: demo1 那位高手帮我看看,我检查环境变量都没有问题啊.怎么会找不到类呢? |
|
|
|
|