Changes

Jump to: navigation, search

Java

3,726 bytes added, 19:46, 18 January 2015
Add JRE8
The stable version of the JRE offered by Oracle is that which is made available from java.com. Newer versions are made available elsewhere by Oracle for developers to test against their software. That isn't to say that once a stable version is available it will only be available from java.com, it's just that this is a useful way to judge the stable version. For example currently JRE 7 is available but the version offered from java.com is 6.0u29. If you deploy JRE 7 you may find it incompatible with the software that requires it, for example LibreOffice 3.4.2 is incompatible with the initial release of JRE 7.0.
 
 
=Java Runtime Environment (JRE) 8=
Get the offline-installers from http://www.oracle.com/technetwork/java/javase/downloads/index.html.
 
Extract the MSI-files:
*Run the installer on a test-computer
*Copy the MSI-file from C:\Users\username\AppData\LocalLow\Sun\Java to your installer-folder.
 
<source lang="xml">
<package
id="java8"
name="Java Runtime Environment 8"
revision="%version%"
reboot="false"
priority="20">
<variable name="updatever" value="08" />
<variable name="shortupdatever" value="25" />
<variable name="version" value="8.0.%shortupdatever%" />
 
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 8" />
<check type="uninstall" condition="exists" path="Java 8 Update %updatever%" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever%" />
<check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}" />
</check>
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='any' />
</install>
<install cmd='msiexec /i %SOFTWARE%\java\jre1.8.0_%shortupdatever%.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q' >
<exit code='any' />
</install>
<!-- remove Java Quick Starter -->
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'>
<exit code='any' />
</install>
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'>
<exit code='any' />
</install>
<!-- remove Java Auto Update -->
<install cmd='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'>
<exit code='any' />
</install>
<downgrade include="install" />
<upgrade include="install" />
<remove cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}' />
<!-- jre 64-bit install for 64-bit hosts only -->
<check architecture="x64" type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 8 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update %updatever% (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever% (64-bit)" />
<check type="uninstall" condition="exists" path="{26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever%F0}" />
</check>
<install architecture="x64" cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='any' />
</install>
<install architecture="x64" cmd='msiexec /i %SOFTWARE%\java\jre1.8.0_%shortupdatever%_x64.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q'>
<exit code='any' />
</install>
<!-- remove Java Quick Starter -->
<install architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'>
<exit code='any' />
</install>
<install architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'>
<exit code='any' />
</install>
<downgrade include="install" />
<upgrade include="install" />
<remove architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever%F0}' />
 
</package>
</source>
 
=Java Runtime Environment (JRE) 7=
10
edits

Navigation menu