1.第一步當然到ORACLE網站下載JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.本文是以現時 jdk-8u60-windows-i586.exe 為例,雖然它是exe檔,但請使用你的解壓軟體7zip或winrar給它解壓縮,解壓後會出現一個tools.zip的壓縮檔.
3.再對tools.zip解壓縮,這時你就會看到JAVA的檔案了,這時我的路徑是在D:\JDK
4.再來要進"命令提示字元(DOS)"針對幾個檔案來改副檔名
rename "D:\JDK\jre\lib\charsets.pack.jar" charsets.jar
rename "D:\JDK\jre\lib\deploy.pack.jar" deploy.jar
rename "D:\JDK\jre\lib\javaws.pack.jar" javaws.jar
rename "D:\JDK\jre\lib\jsse.pack.jar" jsse.jar
rename "D:\JDK\jre\lib\plugin.pack.jar" plugin.jar
rename "D:\JDK\jre\lib\rt.pack.jar" rt.jar
rename "D:\JDK\jre\lib\ext\jfxrt.pack.jar" jfxrt.jar
rename "D:\JDK\jre\lib\ext\localedata.pack.jar" localedata.jar
rename "D:\JDK\lib\tools.pack.jar" tools.jar
5.JAVA這樣就完成了,接下來是Windwos的PATH變數,這個對JAVA程式設計者應該常做吧,省略囉!
留言列表