Topic: 无法生成类文件?

  Print this page

1.无法生成类文件? Copy to clipboard
Posted by: cowone
Posted on: 2005-05-30 22:46

实在没办法...
我编好了一个带.JAVA的程序,然后线用JAVADOC翻译一下,但是在DOS下无法生成类文件(.CLASS文件)........所以让我很痛苦..好有很多命令都不行..都不知道为什么了

2.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-05-31 00:43

javadoc???
use javac !!!

3.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-05-31 11:34

恩..是这个

4.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-05-31 11:35

是不是要装个编译器的?

5.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-05-31 11:50

.;D:\JSDK14\lib\dt.jar;D:\JSDK14\lib\tools.jar;
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\JSDK14\bin

CLASSPATH和PATH的设置有错误妈?

6.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-05-31 20:14

1. make sure that it's D:\JSDK14
2. in Command Prompt, execute
> echo %CLASSPATH%
and
> echo %PATH%
and
> javac
and show us the results.

7.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-05-31 20:44

还是不行呢.....前面两个OK

8.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-05-31 21:24

cowone wrote:
还是不行呢.....前面两个OK

Dead Please show us the results
請把結果剪貼上來

also this one
> d:
> cd \JSDK14\bin
> dir java*

9.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-05-31 21:31

这样了

10.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: wanghang110119
Posted on: 2005-06-01 10:25

这样表示找不到BIN里面的JAVAC.EXE
不用这么麻烦的!
右击我的电脑——属性——高级—---环境变量——新建CLASSPATH和PATH
设置好就OK!

11.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-06-01 18:08

請搞清楚是不是d:\JSDK14吧
d:\JSDK14\bin 裡有沒有 javac.exe ?

12.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-06-01 21:45

有,现在可以了编译了,但是却无法生成.class的文件

13.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-06-02 02:52

cowone wrote:
有,现在可以了编译了,但是却无法生成.class的文件

Could you guys answer more clearly?
Dead 唉, you could just cut-n-paste...

I don't understand what is 可以编译 but 无法生成.class
QuestionQuestionQuestion

14.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-06-02 13:20

public class testHello{
pulbic static void main (String arg[]){
System.out.println("Hello,这是一个测试!");
}//main()
}/** testHello */

写出来之后,我用
javac testHello.java
and
java testHello
and
dir
发现文件夹没有testHello.class文件

15.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: cowone
Posted on: 2005-06-03 17:30

没人帮助下吗?

16.Re:无法生成类文件? [Re: cowone] Copy to clipboard
Posted by: why
Posted on: 2005-06-03 20:40

cowone wrote:
没人帮助下吗?

You could compile/run your java program while the class file is missing...
How could we help... that simply doesn't happen in our world.Smile

Have you tried to search for .class file on our whole system (harddrive)?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923