Menu
What options can be used and with which results when installing JRE 1.6u31?
Using the MSI-File and the parameters mentioned below I find errors in the
log-file and have other problems:
1) Install:
Call MsiExec /I '%SRC%jre1.6.0_31.msi' AUTOUPDATECHECK='0' COMPANYNAME='Companyname, Devisionname' EULA='0' ENDDIALOG='0' JAVAUPDATE='0' JU='0' TRANSFORMS='%SRC%jre1031.MST' REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qr /Li '%MSILogFile%'
1.1) This should be a non-static-installation; older existing versions should
be removed as this one should be removed with the next update.
Does anybody therefore uses /STATIC=0 (or /STATIC='0' with quotation
marks?)?
1.2) The parameters /ADDLOCAL, /IEXPLORE and /MOZILLA are deprecated
since version 1.6u10 so I don't use them any more; cf.:
https://www.java.com/en/download/help/silent_install.xml
1.3) /ARPSYSTEMCOMPONENT=1 or /ARPSYSTEMCOMPONENT='1'?
Do I have to use quotation marks, where shouldn't or mustn't I use them
with such options?
Using the MSI-File and the parameters mentioned below I find errors in the
log-file and have other problems:
1) Install:
Call MsiExec /I '%SRC%jre1.6.0_31.msi' AUTOUPDATECHECK='0' COMPANYNAME='Companyname, Devisionname' EULA='0' ENDDIALOG='0' JAVAUPDATE='0' JU='0' TRANSFORMS='%SRC%jre1031.MST' REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qr /Li '%MSILogFile%'
1.1) This should be a non-static-installation; older existing versions should
be removed as this one should be removed with the next update.
Does anybody therefore uses /STATIC=0 (or /STATIC='0' with quotation
marks?)?
1.2) The parameters /ADDLOCAL, /IEXPLORE and /MOZILLA are deprecated
since version 1.6u10 so I don't use them any more; cf.:
https://www.java.com/en/download/help/silent_install.xml
1.3) /ARPSYSTEMCOMPONENT=1 or /ARPSYSTEMCOMPONENT='1'?
Do I have to use quotation marks, where shouldn't or mustn't I use them
with such options?
Cloud Account. Access your cloud dashboard, manage orders, and more. Sign Up—Free Trial. This page is your source to download or update your existing Java Runtime Environment (JRE, Java Runtime), also known as the Java plug-in (plugin), Java Virtual Machine (JVM, VM, and Java VM). The full internal version number for this update release is 1.6.0_31. See Deploying Java Applets With Family JRE Versions in Java Plug. Java Runtime Download.
And even more I don't really understand the meaning, the aim of this
option ARPSYSTEMCOMPONENT=1. When I tried to understand it after
searching the web I set the value to '0' - but found the value '1' being
used with many other installations.
1.4) In the Jusched.log.-file I found:
'...:: MSICheckPendingFileRenameOperations: RegOpenKeyEx() failed with ERROR_FILE_NOT_FOUND: 2, Error Code: 6'
To me this seems to be OK as there should be no Java-Update-Scheduler
up running. But maybe this error is a hint to look for other problems?
1.5) In the MSI-log I found:
'Aktion gestartet um 15:25:26: LicenseAgreement.
[Action started at 15:...]
DEBUG: Error 2726: Action not found: LicenseAgreement
Interner Fehler 2726. LicenseAgreement
[Internal error 2726...]
Aktion beendet um 15:25:26: LicenseAgreement. Rückgabewert 0.'
[Action terminated at 15:... Return value 0.]
[Usually the return codes are '1'.]
Because of these entries in the log-file I added the option /EULA='0' but
haven't checked yet if this error is still logged.
2) Repair:
Call MsiExec /femus '%SRC%jre1.6.0_31.msi' AUTOUPDATECHECK='0' COMPANYNAME='Companyname, Devisionname' EULA='0' ENDDIALOG='0' JAVAUPDATE='0' JU='0' TRANSFORMS='%SRC%jre1031.MST' REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qr /Li '%MSILogFile%'
2.1) I am using /femus instead of /Fvomus as I had found suggestions
that /Fvemos causes trouble with a JRE-(repair-)installation.
2.2 MSI-log:
DEBUG: Error 2726: Action not found: reinstalldialog
Interner Fehler 2726. reinstalldialog
[Internal error 2726...]
Aktion beendet um 19:13:10: reinstalldialog. Rückgabewert 0.
[Action terminated at 19:... Returnvalue 0]
Aktion gestartet um 19:13:10: MaintenanceWelcome.
[Action started at 19:...]
DEBUG: Error 2726: Action not found: MaintenanceWelcome
Interner Fehler 2726. MaintenanceWelcome
[Internal error 2726...]
Aktion beendet um 19:13:10: MaintenanceWelcome. Rückgabewert 0.
[Action terminated at 19:... Returnvalue 0]
3) Uninstall:
Call MsiExec /X {26A24AE4-039D-4CA4-87B4-2F83216031FF} REBOOT=REALLYSUPPRESS /qr /Li '%MSILogFile%'
As the installation (and a repair) don't work properly (which might result
out of other errors I've made within the script for the deployment-tool
we use), I haven't really checked this uninstallation yet.
But it would be very helpful if there would be a list of supported options
(including which value to use to get what result)!
Thank you!
Regards
Bernd Leutenecker
option ARPSYSTEMCOMPONENT=1. When I tried to understand it after
searching the web I set the value to '0' - but found the value '1' being
used with many other installations.
1.4) In the Jusched.log.-file I found:
'...:: MSICheckPendingFileRenameOperations: RegOpenKeyEx() failed with ERROR_FILE_NOT_FOUND: 2, Error Code: 6'
To me this seems to be OK as there should be no Java-Update-Scheduler
up running. But maybe this error is a hint to look for other problems?
1.5) In the MSI-log I found:
'Aktion gestartet um 15:25:26: LicenseAgreement.
[Action started at 15:...]
DEBUG: Error 2726: Action not found: LicenseAgreement
Interner Fehler 2726. LicenseAgreement
[Internal error 2726...]
Aktion beendet um 15:25:26: LicenseAgreement. Rückgabewert 0.'
[Action terminated at 15:... Return value 0.]
[Usually the return codes are '1'.]
Because of these entries in the log-file I added the option /EULA='0' but
haven't checked yet if this error is still logged.
2) Repair:
Call MsiExec /femus '%SRC%jre1.6.0_31.msi' AUTOUPDATECHECK='0' COMPANYNAME='Companyname, Devisionname' EULA='0' ENDDIALOG='0' JAVAUPDATE='0' JU='0' TRANSFORMS='%SRC%jre1031.MST' REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qr /Li '%MSILogFile%'
2.1) I am using /femus instead of /Fvomus as I had found suggestions
that /Fvemos causes trouble with a JRE-(repair-)installation.
2.2 MSI-log:
DEBUG: Error 2726: Action not found: reinstalldialog
Interner Fehler 2726. reinstalldialog
[Internal error 2726...]
Aktion beendet um 19:13:10: reinstalldialog. Rückgabewert 0.
[Action terminated at 19:... Returnvalue 0]
Aktion gestartet um 19:13:10: MaintenanceWelcome.
[Action started at 19:...]
DEBUG: Error 2726: Action not found: MaintenanceWelcome
Interner Fehler 2726. MaintenanceWelcome
[Internal error 2726...]
Aktion beendet um 19:13:10: MaintenanceWelcome. Rückgabewert 0.
[Action terminated at 19:... Returnvalue 0]
3) Uninstall:
Call MsiExec /X {26A24AE4-039D-4CA4-87B4-2F83216031FF} REBOOT=REALLYSUPPRESS /qr /Li '%MSILogFile%'
As the installation (and a repair) don't work properly (which might result
out of other errors I've made within the script for the deployment-tool
we use), I haven't really checked this uninstallation yet.
But it would be very helpful if there would be a list of supported options
(including which value to use to get what result)!
Thank you!
Regards
Bernd Leutenecker
Active1 year, 3 months ago
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...
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)
opensas
opensasopensas28.1k6363 gold badges203203 silver badges309309 bronze badges
closed as off-topic by Mogsdad, Erik A, TylerH, Paul Roub, MachavityNov 14 '17 at 20:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – Mogsdad, Erik A, TylerH, Paul Roub, Machavity
30 Answers
You can download a Java Portable from PortableApps.com. It will not change your system settings. You can put it on your USB stick.
UPD: for those who needs JDK there's an open-source project OpenJDK Portable
peterh6,8491515 gold badges5656 silver badges7474 bronze badges
Maksim Vi.Maksim Vi.6,2201212 gold badges5151 silver badges8080 bronze badges
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 directoryC:JDK
- Execute the following commands in
cmd.exe
:cd C:JDK.rsrc1033JAVA_CAB10
extrac32 111
- Unpack
C:JDK.rsrc1033JAVA_CAB10tools.zip
with 7-zip - Execute the following commands in
cmd.exe
:cd C:JDK.rsrc1033JAVA_CAB10tools
for /r %x in (*.pack) do .binunpack200 -r '%x' '%~dx%~px%~nx.jar'
(this will convert all.pack
files into.jar
files)
- Copy all contents of
C:JDK.rsrc1033JAVA_CAB10tools
where you want your JDK to be - Setup
JAVA_HOME
andPATH
manually to point to your JDK dir and its BIN subdirectory.
18.5k88 gold badges5050 silver badges9393 bronze badges
IgorIgor4,98022 gold badges1212 silver badges77 bronze badges
- Create destination folder where you can RWX (e.g.
C:jdk8
) - Download jdk exe from Oracle (e.g.
jdk-8u72-windows-x64.exe
) - Unzip the
tools.zip
found inside it into the destination folder - In
cmd.exe
, run:cd C:jdk8
for /r %x in (*.pack) do .binunpack200 -r '%x' '%~dx%~px%~nx.jar'
This solution works for JDK 8 too, without Admin rights.
dARKpRINCE1,34511 gold badge1111 silver badges2121 bronze badges
Marc TMarc T
For JDK 8u102 things have changed, this worked for me:
- Download windows JDK exe
- Open with 7-Zip
- Dump contents into a directory %JDK-EXE%
- cmd: cd %JDK-EXE%.rsrc1033JAVA_CAB10
- cmd: extrac32 111
- Now have a tools.zip in directory, open it in 7-Zip
- Extract contents into a new directory %JDK-VERSION%
- cmd: cd %JDK-VERSION%
- cmd: for /r %x in (*.pack) do .binunpack200 -r '%x' '%~dx%~px%~nx.jar'
- src.zip is in %JDK-EXE%.rsrc1033JAVA_CAB9110 - put a copy into %JDK-VERSION%
Now you are ready to go.You might want to setup JAVA_HOME and PATH to point to your %JDK-VERSION% dir and its BIN subdir.
David RichmondDavid Richmond
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 AppDataLocalLowSunJava
- 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 *
Cheran Shunmugavel7,36911 gold badge2424 silver badges3939 bronze badges
Download Java 1.8.0
user257319
The answer has been given before. It works for 'jdk-8u91-windows-x64.exe' also
- Unzip with 7-zip, so we get tools.zip
- Unzip tools.zip to a folder folder_name so we get the contents in the picture
- In cmd move to the folder folder_name/bin and run the commandjava -version
the output will be
this indicates that there is something messing. Actually we need to unpack all packages.
- In cmd move to the folder folder_name and automatically do the unpacking by executing the commandfor /r %x in (*.pack) do .binunpack200 -r '%x' '%~dx%~px%~nx.jar'
- Do step 3 again, if you get the output bellow, then the JDK is ready to use.
18.6k66 gold badges4343 silver badges5858 bronze badges
AhmadAhmad
This is how I do it,
Start with the exe installation and wait for the below screen,
Go to the
C:Program Files (x86)Java
and copy your JDK to another place.Cancel the installation by clicking 'x' and uninstall JDK.
Copy the copied JDK back into
Avinash SinghAvinash SinghC:Program Files (x86)Java
or other folder of your choice2,30111 gold badge1212 silver badges2020 bronze badges
- Download jdk from Oracle website: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Unzip the exe. For example: jdk-8u5-windows-x64.exe
- Unzip the following file: tools.zip (found under the unzipped folder) to the desired JAVA_HOME.
- 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 jdk from Oracle website: http://www.oracle.com/technetwork/java/javaee/downloads/index.html
- Unzip the exe. For example: jdk-7u55-windows-x64.exe
- Unzip the following file: ProductPackagesjdk.zip (found under the unzipped folder) to the desired JAVA_HOME.
- Update the JAVA_HOME environment variable to point to your desired path.
Tested for version: jdk-7u55-windows-x64.exe
Alin StoianAlin Stoian89911 gold badge88 silver badges2121 bronze badges
There is a .tar.gz file of the Java Runtime Environment (JRE) on the Oracle website for these operations systems: Windows x86, Windows x64, Linux x86, Linux x64, Mac OS X x64, Solaris x64.See: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Also there is the Java Development Kit (JDK): http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.The Windows .tar.gz. is missing, but you can just extract the .exe file with a tool like 7zip.
I found this is very useful to make Eclipse portable. ;-)
K BK B79011 gold badge1414 silver badges3030 bronze badges
You can download a portable Zulu .zip archive from Azul Systems, which are builds of OpenJDK for Windows, Linux (RHEL, SUSE, Debian, Ubuntu, CentOS) and Mac OS X.
Zulu is a certified build of OpenJDK that is fully compliant with the Java SE standard. Zulu is 100% open source and freely downloadable. Now Java developers, system administrators and end users can enjoy the full benefits of open source Java with deployment flexibility and control over upgrade timing.
More technical information on different JVMs (including Zulu) with their architectures and OS support here.
VoicuVoicu10.5k77 gold badges4242 silver badges5353 bronze badges
The widely-upvoted answer is fine, I've used it for quite some time in the form of this bat file:
It requires access on the path to 7zip, and must be run in a folder alongside the JDK of your choice (it'll find it because of the *.exe up here).
Works on 8u144, and I guess it worked from the 8u20 thing.
SaucistopheSaucistophe
try this:http://maven.nuiton.org/nexus/content/repositories/jvm/com/oracle/jre/
this link contains portable zip distributions for all versions.
swapyonubuntuswapyonubuntu86211 gold badge1515 silver badges2929 bronze badges
Here is a link for JDK 5 zip file.sun-jdk-5-win32-x86-1.5.0.12.zip
zaki benzzaki benz
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).
Oliver KocsisOliver Kocsis44311 gold badge44 silver badges1111 bronze badges
The Sun JVM is available as a MSI which is executable from a script.
Thorbjørn Ravn AndersenThorbjørn Ravn Andersen57.9k2525 gold badges154154 silver badges295295 bronze badges
Tested with
jdk-8u74-macosx-x64.dmg
.- Download from Oracle the
.dmg
- Mount the disk image
- Extract the
.pkg
, dragging it. Do not double-click (it will install). - Open a terminal and
cd
into the package. mkdir jdk-$version && cd jdk-$version
xar -xf ../JDK*.pkg
cd jdk
TABtar zxf Payload
- The
Contents/Home
folder contains the JDK
56311 gold badge77 silver badges2323 bronze badges
JDK's can be downloaded from here as zip file nor .exehttp://installbuilder.bitrock.com/java/
supernovasupernova1,53533 gold badges2020 silver badges2828 bronze badges
Thanks for asking; the JDK does not seem to interact with the Windows registry.
However, the JRE does in certain instances.
Link: http://www.rgagnon.com/javadetails/java-0604.html
iokevinsiokevins87122 gold badges1313 silver badges2929 bronze badges
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%jrelibext
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%jrelibext
RomelAlvaradoRomelAlvarado
You can just use 7zip (or another similar app) to get the dirs inside the core.zip file that's bundled in the installer.Just use 7zip to browse the exe, you'll see a core.zip file which has all the files that usually go inside 'jreX' dir (where X is the major version number).As for setting env variables and the such, you can follow the other answers. If all you want is a portable jre (for example, you can run your jars by using java.exe jarfile or javaw.exe jarfile) then this solution will do.This is very similar to copying the jre dir from one place to another
JuancentroJuancentro
This link
helps you at least avoid the obnoxious preload installer getting straight to the SDK.
From there, I would install this in a throw-away VM, on your old crufty PC or elsewhere, then transfer the resulting
(or similar) to your new machine, set the very few usual ENV variables, and there you ideally go, w/o all the marketing junk and potential tie-ins. Of course, also w/o the security from frequent automatic updates.
Java 1.6.0.30 Download
Frank NockeFrank Nocke
I discovered you can run the installer in Wine. This works:
WINEPREFIX=/home/jason/java wine jre-7u11-windows-i586.exe
Then once it is finished you can just zip up the
/home/jason/java/drive_c/Program Files (x86)/Java/jre7/
This should work for jdk as well
Jules6,7401010 gold badges4141 silver badges8383 bronze badges
Jason PellJason Pell
You can download SEVER JRE it contains jdk. server jre 7
- Download server-jre-< version>.tar.gz file for windows system.
- If you have 7zip tar file can be extracted by that, I used cygwin(cygwin can be installed without admin rights see this answer) to extract tar file with command
tar xzvf file.tar.gz
any other tar extractor will also work
Now extracted JDK folder will be created in same folder.
Community♦
priyanka_raopriyanka_rao
Ramazan PolatRamazan Polat
I did copy the JRE folder several times and it always works fine. But I am really not sure if you can just get a zip file with its contents, as the official installation install the plugins for IE, Firefox and whatsoever.
Ravi WallauRavi Wallau9,10422 gold badges2020 silver badges3333 bronze badges
You can get jre-7u75-windows-i586.zip from the link above.
helperhelper
Java 1.6.0 Download Windows 10
Commands from tips below wrapped as batch script. Save this as unpack.bat. Then place it to dir with jdk/jre extracted files.
yuliskovyuliskov
I installed JDK 8 with the exe installer and then uninstalled JRE, I now have JDK folder with no env variable or other setting changed.
ankit.ag.inankit.ag.in
Here's where. Download the .gz package.
SuvadeepSuvadeep
BaiJiFeiLongBaiJiFeiLong