标题:提前的错误
只看楼主
yfzsj
Rank: 1
等 级:等待验证会员
帖 子:242
专家分:2
注 册:2005-9-22
 问题点数:0 回复次数:1 
提前的错误
不论我运行那个程序都有如下的错误: Exception in thread "main" java.lang.NoClassDefFoundError=con\sun\tools\javac\main 我的系统是XP,查资料说是CLASSPATH的设置有问题,资料上说是在CLASSPATH设置的是CLASS文件的路径。如果用JAVADOC时,错误只是把上面的JAVAC改成了JAVADOC但是,该错误是在JAVAC的时候就出现了啊,如果说缺少CLASS,可我的程序是原题啊。按哩来说是在JAVA的时候才该有的啊,可 我怎么也修改不好 高手救我
搜索更多相关主题的帖子: CLASSPATH main java TABLE 
2005-09-22 20:48
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
得分:0 
[QUOTE] ErrorExplanation Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldAppIf you receive this error, java cannot find your bytecode file,HelloWorldApp.class.One of the places java tries to find your bytecode file isyour current directory. So, if your bytecode file is in C:\java,you should change your current directory to that. To change your directory,type the following command at the prompt and press Enter:
cd c:\java
The prompt should change to C:\java>. If you enter dirat the prompt, you should see your .java and .class files.Now enter java HelloWorldApp again.If you still have problems, you might have to change your CLASSPATHvariable. To see if this is necessary, try "clobbering" the classpath withthe following command:
set CLASSPATH=
Now enter java HelloWorldApp again. If the program works now,you'll have to change your CLASSPATH variable. For more information, consultthe section 5. Update the PATH variable in the installation instructions. [/QUOTE] 下面那个网页你也可以看一下 http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2005-09-22 22:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-28400-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.374219 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved