在Windows中获取oracle java 1.8而不安装它 [英] get oracle java 1.8 in windows without installing it

查看:137
本文介绍了在Windows中获取oracle java 1.8而不安装它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以zip格式获取java?我不想通过获取.exe文件来安装它。

Is it possible to get java in zip format? I don't want to install it by getting .exe file.

是否有java 1.8的zip版本,以便我可以下载并提取它并开始在我的Windows机器(64位处理器)中使用它

is there any zip version of java 1.8 so that i can download it and extract it and start using it in my Windows machine(64 bit processor)

推荐答案

您可以从安装EXE中提取JDK文件夹。

You can extract the JDK folder from the Installation EXE.

检查此链接的步骤。该帖子适用于JDK 1.7,它适用于JDK 1.8

Check this link for the steps. The post was for JDK 1.7 it will work for JDK 1.8 also

执行以下操作。

步骤


  1. Oracle

  2. 这里

  3. 使用7-Zip打开installition exe

  4. 解压工具.zip

  5. 将tools.zip的内容解压缩到一个文件夹(例如c:\ jdk)。

  6. 打开解压缩的文件夹在cmd提示符下。

  7. 执行 for / r%x in(* .pack)do .\bin\unpack200 -r%x%〜 dx%~px%~nx.jar命令

  8. JAVA_HOME 设置为jdk(例如c :\ jdk)文件夹。

  9. %JAVA_HOME%/ bin 添加到PATH env变量。

  1. Download JDK from Oracle
  2. Download and Install 7-zip from here
  3. Open installition exe using 7-Zip
  4. Extract the tools.zip
  5. Extract the content of tools.zip to a folder (e.g. c:\jdk).
  6. Open the extracted folder in cmd prompt.
  7. Execute for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" command
  8. Set JAVA_HOME to the jdk (e.g c:\jdk) folder.
  9. Add %JAVA_HOME%/bin to the PATH env variable.

测试

运行以下逗号为了检查安装,它将打印JDK的版本。

Run the following command to check the installation, it will print the version of JDK.

c:> javac -version
javac 1.7.0_51

注:已测试JDK 1.7和1.8

NOTE: Tested with JDK 1.7 and 1.8

更新1

编辑答案添加回答本身而不是博客帖子的链接。

Edited the answer to add the steps in the answer itself instead of the link to a blog post.

更新2

对于64位,请查看 unpack-jdk-x64 .bat by grabantot

For 64-Bit please check unpack-jdk-x64.bat by grabantot

这篇关于在Windows中获取oracle java 1.8而不安装它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆