????CLASSPATH????????????????????
????????javac???????????????????????????????import??package??????й??????д??improt java.util.*????????????import??????????????????java.util???package?е???????????????????????? package???????????????????????????????????package??????λ?????θ??????????????CLASSPATH?? :) ???java.util???package??c:/jdk/ ???£???e?c:/jdk/???·???????CLASSPATH????????????????import java.util.*?????????????????CLASSPATH?????????????????????java/util????????????????????????????? ??.class?????????????????????CLASSPATH?е???c/c++???????е?INCLUDE·???????????????????c/c++???????? ??include ??????????????????????????????????????????INCLUDE·???????????????????????????package?????????????? package?е????????????e????package????????????CLASSPATH?????CLASSPATH???趨????JAVA??????????? ???????????????Sun??JAVA2??JDK???????Щ??????????????????????????趨CLASSPATH???????????????????JAVA ?????????????С?????.....................................................................................................................................................
????1. PATH???????????????????????????·???? ?????????????????????javac????java???????????PATH???????????·???в?????????????????????????????????jdk??????μ? bin??????????е?PATH?????У?bin???а??????????????????????javac/java/javadoc????????ú?PATH?????? ???????κ????????javac/java?????????????????趨??PATH????
????%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;%SYSTEMROOT%/System32/WindowsPowerShell/v1.0/;C:/Program Files/Common Files/Thunder Network/KanKan/Codecs;C:/Program Files/Microsoft SQL Server/90/Tools/binn/;C:/Program Files/Common Files/TTKN/Bin;C:/Program Files/Common Files/Teleca Shared;C:/Program Files/Java/jdk1.6.0_21/bin
??????????к??????;C:/Program Files/Java/jdk1.6.0_21/bin??java??PATH????????????????????";”?????
????2. CLASSPATH?????????????????????????·???? ?????????д????????????????????????JVM?????CLASSPATH??????????????????jdk??????μ?lib?????е? dt.jar??tools.jar?????CLASSPATH?У???????????“.”??????????????С?????CLASSPATH???
????.;C:/Program Files/Java/jdk1.6.0_21/lib/dt.jar;C:/Program Files/Java/jdk1.6.0_21/lib/tools.jar
????3. JAVA_HOME???????????????jdk????????Eclipse/NetBeans/Tomcat??????????????JAVA_HOME?????????????e?????jdk??????JAVA_HOME???
????C:/Program Files/Java/jdk1.6.0_21
??.....................................................................................................................................................
????java???????????ò??裺
??????windows?????????“??????” —> “????” —> “???” —> “????????”????“??????”???????????????????????????????????????????????????????????????????“;”??????????????“???”???? ?е????????jdk?й????3????????????“JAVA_HOME”??“PATH”??“CLASSPATH”?????????“PATH”????????????????? ???????????????????????????????????????????????????????????????????
????CLASSPATH= .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar
????JAVA_HOME = C:/Program Files/Java/jdk1.5.0
????PATH  = %JAVA_HOME%/bin;%JAVA_HOME%/jre/bin
??????????????????????PATH??CLASSPATH????????JAVA_HOME??????????·?????????ɡ?