管理员把我的admin权限去掉了,那么如何获得jdk zip安装呢?这篇可以帮你。

本文提供了一个详细的指南,教你如何将标准的JDK安装包转换为便携式版本,适用于不同操作系统。通过使用7-Zip解压缩工具,你可以将JDK文件夹提取到任意目录,并进行必要的配置来实现便携性。

JDK is not available as a portable zip unfortunately. However, you can:

  • Create working JDK directory (C:\JDK in this case)
  • Download latest version of JDK from oracle (for example jdk-7u7-windows-i586.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-[6-7]u?-windows-i586.exe in directory C:\JDK
  • In command shell (cmd.exe) do the following:

    --> change directory to directory C:\JDK\.rsrc\JAVA_CAB10

    --> execute command: extrac32 111

  • Unpack C:\JDK\.rsrc\JAVA_CAB10\tools.zip with 7-zip

  • In command shell (cmd.exe) do the following:

    --> change directory to C:\JDK\.rsrc\JAVA_CAB10\tools\

    --> execute command:

    for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"

    (this will convert all pack files into jar)

  • Copy whole directory and all subdir of c:\JDK\.rsrc\JAVA_CAB10\tools where you want your JDK to be and setup manually JAVA_HOME and PATH to point to your JDK dir and its BIN subdir.

Thats all. After this you'll be able at least to use javac.exe

转载于:https://www.cnblogs.com/apachestorm/p/4314776.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值