How can I get the latest JRE / JDK as a zip file r

2019-01-03 11:25发布

I like to be sure that everything will work just by copying the contents of the Java folder and setting the environment variables.

I usually run the installer in a virtual machine, zip the \java folder contents, go back to a snapshot of the virtual machine, and then unzip the compressed file.

I couldn't find a place where the latest JRE / JDK is available as a zip file...

http://java.sun.com/javase/downloads/index.jsp

http://download.java.net/jdk6/

Alternately, is it safe to assume that exe installer from sun just will just unzip the whole thing, without messing around with the registry, environment variables, etc...?

Related: Installing Java manually on Windows?

-- After all this time I found this site that seems to be exactly what I was looking for (2018-05-22)

30条回答
贪生不怕死
2楼-- · 2019-01-03 11:39

Download JAVA SE with JDK

  1. Download jdk from Oracle website: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Unzip the exe. For example: jdk-8u5-windows-x64.exe
  3. Unzip the following file: tools.zip (found under the unzipped folder) to the desired JAVA_HOME.
  4. Update the JAVA_HOME environment variable to point to your desired path.

Tested for version: jdk-7u60-windows-x64.exe, jdk-7u60-windows-x64.exe

Download JAVA EE with JDK

  1. Download jdk from Oracle website: http://www.oracle.com/technetwork/java/javaee/downloads/index.html
  2. Unzip the exe. For example: jdk-7u55-windows-x64.exe
  3. Unzip the following file: Product\Packages\jdk.zip (found under the unzipped folder) to the desired JAVA_HOME.
  4. Update the JAVA_HOME environment variable to point to your desired path.

Tested for version: jdk-7u55-windows-x64.exe

查看更多
Rolldiameter
3楼-- · 2019-01-03 11:40

Download the Processing application from http://www.processing.org/download/. The zip file contains a folder called java. It includes the JDK 1.6.0_32 (version checked on 19/02/2013).

查看更多
混吃等死
4楼-- · 2019-01-03 11:40

http://androidhost.org/D8wsv

You can get jre-7u75-windows-i586.zip from the link above.

查看更多
女痞
5楼-- · 2019-01-03 11:41

The Process described by Igor and CharlesB Works to me, since IDE's like NetBeans and Eclipse permit specify the location of the JDK, even software like Apache Tomcat (the ZIP Distribution) use BASH - FILES to set it up (then specify the JDK location using relatives URI).
I Have a USB-HardDisk With NetBeans, Eclipse, Apache Tomcat working with a JDK in "portable mode".
I Had a way to extract a copy of the JDK from the installers files: Install it, Copy it in other place and then uninstall it. A dirty way to extract it, but was successfull.
The place to put EXTRA - LIBS was: %PLACE_WHERE_JDK_ARE%\jre\lib\ext

查看更多
一夜七次
6楼-- · 2019-01-03 11:42

Here is a good, but a little complex, way:

Stage 1: MSI & CAB from native installation file

  1. Download the JRE or JDK from the Oracle (Sun) website. This method will work on any version and on SDK or JRE.

  2. Run and wait for the installer to load. Minimize the window.

  3. In Windows 7, you should browse to this location:

    C:\Users\ YOUR_USER_NAME \AppData\LocalLow\Sun\Java

  4. There, you will have a few MSI and CAB files.

enter image description here

Stage 2: easily extract the MSI & CAB using uniextract

  1. Browse to Universal Extractor | LegRoom.net and download UniExtract Binary Archive.

  2. Use WinRar or any un-RAR program available to you, and extract uniextract161_noinst.rar anywhere.

enter image description here

Stage 3: finally, extract the inner container named core.zip

  1. Drag & drop jdk1.6.0_31.msi or jre1.6.0_31.msi on the icon of UniExtract.exe.

  2. Select "Extract Method: MSI Administrative Installer". Wait for the process to finish.

  3. Enter the new created folder.

    If you've drag-and-dropped jre1.6.0_31.msi you should have a jre1.6.0_31 folder

  4. Follow all levels inside and you'll see core.zip. enter image description here

  5. This is what you are after. You can just unzip it anywhere and you'll have the content of the Java runtime or SDK without installing anything on your system.

* You can now close the installer of Java you've left opened in stage 1 *

查看更多
看我几分像从前
7楼-- · 2019-01-03 11:42

try this: http://maven.nuiton.org/nexus/content/repositories/jvm/com/oracle/jre/

this link contains portable zip distributions for all versions.

查看更多
登录 后发表回答