在win2000下如何用jdk编译和运行java程序?
Just install the jdk
set the path,classpath
and run
Comiple:
javac ur.java
Run
java ur
Its impossible to make more than the widest guess at how many people never read the jdk manual.
javac aa.java
java aa
ok,run!
比如你的JDK装在C:\的目录下,你的JAVA文件是test.java
C:\javac test.java 编译
C:\java test 运行
就可以拉。
要注意,编译时要用
javac d:\java\hello.java 就是说要加上扩展名,而运行时不允许加扩展名,这是规定,运行比如: java d:\java\hello 而不能是 java d:\java\hello.class