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)
Download JAVA SE with JDK
Tested for version: jdk-7u60-windows-x64.exe, jdk-7u60-windows-x64.exe
Download JAVA EE with JDK
Tested for version: jdk-7u55-windows-x64.exe
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).
http://androidhost.org/D8wsv
You can get jre-7u75-windows-i586.zip from the link above.
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
Here is a good, but a little complex, way:
Stage 1: MSI & CAB from native installation file
Download the JRE or JDK from the Oracle (Sun) website. This method will work on any version and on SDK or JRE.
Run and wait for the installer to load. Minimize the window.
In Windows 7, you should browse to this location:
C:\Users\ YOUR_USER_NAME \AppData\LocalLow\Sun\Java
There, you will have a few MSI and CAB files.
Stage 2: easily extract the MSI & CAB using uniextract
Browse to Universal Extractor | LegRoom.net and download UniExtract Binary Archive.
Use WinRar or any un-RAR program available to you, and extract uniextract161_noinst.rar anywhere.
Stage 3: finally, extract the inner container named core.zip
Drag & drop jdk1.6.0_31.msi or jre1.6.0_31.msi on the icon of UniExtract.exe.
Select "Extract Method: MSI Administrative Installer". Wait for the process to finish.
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
Follow all levels inside and you'll see core.zip.
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 *
try this: http://maven.nuiton.org/nexus/content/repositories/jvm/com/oracle/jre/
this link contains portable zip distributions for all versions.