兴国资源网 Design By www.nnzcdc.com
Windows
下个jdk包,安装,
JAVA_HOME=C:\java
PATH=C:\java\bin
CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
Linux
wget 192.168.1.101/jdk-6u11-linux-i586.bin
mv jdk-6u11-linux-i586.bin /usr/local/src/
cd /usr/local/src/
./jdk-6u11-linux-i586.bin
mkdir ../java
mv jdk1.6.0_11/* ../java/
vim /home/myz/.bashrc
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Test
// HelloWorld.java
import java.util.*;
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World");
System.out.println(new Date());
}
}
javac HelloWorld.java
java Helloworld
兴国资源网 Design By www.nnzcdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
兴国资源网 Design By www.nnzcdc.com