step one :安装exe文件,如jdk-6u24-windows-i586.exe
step two :配置环境变量
step two-one : name:JAVA_HOME
value:jdk安装路径
(for example: C:Program FilesJavajdk1.6.0_24)
(attention : 不要以;号结尾)
step two-two : name:Path
value:%JAVA_HOME%in;%JAVA_HOME%jrein;
(attention : 一定要以;号结尾)
step two-three :
name:CLASSPATH
value:%JAVA_HOME%lib;%JAVA_HOME%lib ools.jar;
(attention : 一定要以;号结尾)
step three :打开cmd,输入java,如有帮助信息,恭喜你,配置成功了!