假设你的jdk安装在:F:/Program Files/Java/jdk1.6.0_07;
1 JAVA_HOME = F:/Program Files/Java/jdk1.6.0_07;
2 PATH = .;%JAVA_HOME%/bin;
3 CLASSPATH = .;%JAVA_HOME%/lib;
测试:
public class Test {
public static void main(String [] args) {
System.out.println("Hello Java!");
}
}
cmd:
javac Test.java
java Test
【备忘】JAVA环境变量设置
最新推荐文章于 2024-08-14 23:12:09 发布