获取免安装的jdk

原文链接:https://stackoverflow.com/questions/1619662/how-can-i-get-the-latest-jre-jdk-as-a-zip-file-rather-than-exe-or-msi-installe

JDK is not available as a portable ZIP file, unfortunately. However, you can follow these steps:

    Create working JDK directory (C:\JDK in this case)
    Download latest version of JDK from Oracle (for example jdk-7u7-windows-x64.exe)
    Download and install 7-Zip (or download 7-Zip portable version if you are not administrator)
    With 7-Zip extract all the files from jdk-XuXX-windows-x64.exe into the directory C:\JDK
    Execute the following commands in cmd.exe:
        cd C:\JDK\.rsrc\1033\JAVA_CAB10
        extrac32 111
    Unpack C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zip with 7-zip
    Execute the following commands in cmd.exe:
        cd C:\JDK\.rsrc\1033\JAVA_CAB10\tools\
        for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" (this will convert all .pack files into .jar files)
    Copy all contents of C:\JDK\.rsrc\1033\JAVA_CAB10\tools where you want your JDK to be
    Setup JAVA_HOME and PATH manually to point to your JDK dir and its BIN subdirectory.
 

转载于:https://my.oschina.net/w7219/blog/1647124

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值