Difference between revisions of "OpenJDK"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Init version)
 
m
Line 1: Line 1:
Because Oracle license since June 2019 not allow use Oracle jre in the commercial segment, you can interest in analog. [https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=hotspot Download it here!]
+
Because Oracle license since June 2019 not allow use Oracle jre in the commercial segment, you can interest in analog. It can be AdoptOpenJDK. [https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=hotspot Download it here!]
 
== Config for JRE==  
 
== Config for JRE==  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 21:19, 11 May 2020

Because Oracle license since June 2019 not allow use Oracle jre in the commercial segment, you can interest in analog. It can be AdoptOpenJDK. Download it here!

Config for JRE

<package
	id="openjre"
	name="OpenJDK JRE"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="20">

	<variable name="PKG_VERSION"			value="11.0.7.10" />
	<variable name="PKG_SOURCE"			value="%SOFTWARE%\Java\OpenJDK"/>
	<variable name="PKG_NAME"			value="OpenJDK11U-jre_x86-32_windows_hotspot_%PKG_VERSION%.msi" />
	<variable name="PKG_NAME_64"			value="OpenJDK11U-jre_x64_windows_hotspot_%PKG_VERSION%.msi" />
	<variable name="PKG_INSTALL_SWITCH"		value="/qn /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJavaHome,FeatureJarFileRunWith,FeatureOracleJavaSoft" />
	<variable name="PKG_REMOVE_SWITCH"		value="/qn /norestart" />
	<variable name="PKG_DESTINATION"		value="%PROGRAMFILES%\AdoptOpenJDK\jre-%PKG_VERSION%-hotspot" />
	<variable name="PKG_MSI_CODE_X86"		value="{074D0BBD-97EB-45A3-A066-441FBE6A79FE}" />
	<variable name="PKG_MSI_CODE_X64"		value="{EB1A316D-D3D6-40F7-A70C-F0F02365F835}" />

	<check type="logical" condition="and">  
		<check type="uninstall" condition="exists" path="AdoptOpenJDK JRE with Hotspot %PKG_VERSION% (x86)" />
		<check type="uninstall" condition="exists" path="AdoptOpenJDK JRE with Hotspot %PKG_VERSION% (x64)" architecture="x64" />  
	</check>

	<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
	<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME_64%" %PKG_INSTALL_SWITCH%' architecture="x64" />
 
 	<downgrade include="remove" />
	<downgrade include="install" />
	<upgrade include="remove" />
 	<upgrade include="install" />

	<remove cmd='msiexec /X %PKG_MSI_CODE_X86% %PKG_REMOVE_SWITCH%' />
	<remove cmd='msiexec /X %PKG_MSI_CODE_X64% %PKG_REMOVE_SWITCH%' architecture="x64" />
</package>