在windows平臺不經過exe安裝包安裝java1.8
Stepshtml
- Download JDK from Oracle
- Download and Install 7-zip from here
- Open installition exe using 7-Zip
- Extract the tools.zip
- Extract the content of tools.zip to a folder (e.g. c:\jdk1.8).
- Open the extracted folder in cmd prompt.
- Execute for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" command
- Set JAVA_HOME to the jdk (e.g c:\jdk) folder.
- Add %JAVA_HOME%/bin to the PATH env variable.
歡迎關注本站公眾號,獲取更多信息