<component>
    <name>java</name>
    <description>Java Runtime Environment</description>
    <canBeEdited>0</canBeEdited>
    <selected>1</selected>
    <show>0</show>

    <!-- folders storing JRE -->
    <folderList>
        <folder>
            <description>Java binaries - Microsoft Windows</description>
            <destination>${installdir}/java</destination>
            <name>java_windows</name>
            <platforms>windows</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-windows/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
        <folder>
            <description>Java binaries - Linux</description>
            <destination>${installdir}/java</destination>
            <name>java_linux</name>
            <platforms>linux</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-linux/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
        <folder>
            <description>Java binaries - Linux-x64</description>
            <destination>${installdir}/java</destination>
            <name>java_linux_x64</name>
            <platforms>linux-x64</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-linux-x64/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
        <folder>
            <description>Java binaries - Solaris Sparc</description>
            <destination>${installdir}/java</destination>
            <name>java_solaris_sparc</name>
            <platforms>solaris-sparc</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-solaris-sparc/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
        <folder>
            <description>Java binaries - Solaris Intel</description>
            <destination>${installdir}/java</destination>
            <name>java_solaris_intel</name>
            <platforms>solaris-intel</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-solaris-intel/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
        <folder>
            <description>Java binaries - Mac OS X</description>
            <destination>${installdir}/java</destination>
            <name>java_osx</name>
            <platforms>osx</platforms>
            <distributionFileList>
                <distributionFile>
                    <allowWildcards>1</allowWildcards>
                    <origin>java-osx/*</origin>
                </distributionFile>
            </distributionFileList>
	    <ruleList>
		<isTrue value="${java_install_jre}" />
	    </ruleList>
        </folder>
    </folderList>

    <!-- parameters for creating Java launchers -->
    <parameterList>
	<stringParameter name="java_launcher_destination" value="${installdir}" ask="0" />
	<stringParameter name="java_launcher_binary_name" value="${project.shortName}-launcher.${platform_exec_suffix}" ask="0" />
	<stringParameter name="java_launcher_arguments" value="" ask="0" />
	<stringParameter name="java_launcher_vm_parameters" value="" ask="0" />
	<stringParameter name="java_launcher_jar" value="" ask="0" />
	<stringParameter name="java_launcher_mainClass" value="" ask="0" />
	<stringParameter name="java_launcher_classpath" value="" ask="0" />
	<stringParameter name="java_launcher_startmenu_shortcut_name" value="Launch ${project.fullName}" ask="0" />
	<booleanParameter name="java_launcher_add_to_win_startmenu" value="1" ask="0" />
	<booleanParameter name="java_install_jre" value="1" ask="0" />
	<booleanParameter name="java_create_launcher" value="1" ask="0" />
    </parameterList>

    <!-- set Java information -->
    <readyToInstallActionList>
	<if>
	    <actionList>
		<setInstallerVariable name="java_version_major" value="1.8" />
		<setInstallerVariable name="java_version" value="1.8.0" />
		<setInstallerVariable name="java_version_full" value="1.8.0_45" />
		<setInstallerVariable name="java_version_vendor" value="Sun" />
		<setInstallerVariable name="java_bitness" value="64" />
		<!-- determine Java binary name - javaw.exe on Windows, java otherwise -->
		<setInstallerVariable>
		    <name>java_executable</name>
		    <value>${installdir}/java/bin/java</value>
		</setInstallerVariable>
		<setInstallerVariable>
		    <name>java_executable</name>
		    <value>${installdir}/java/bin/javaw.exe</value>
		    <ruleList>
			<platformTest type="windows" />
		    </ruleList>
		</setInstallerVariable>
	    </actionList>
	    <elseActionList>
		<setInstallerVariable>
		    <name>java_executable</name>
		    <value></value>
		</setInstallerVariable>
	    </elseActionList>
	    <conditionRuleList>
		<isTrue value="${java_install_jre}" />
	    </conditionRuleList>
	</if>
    </readyToInstallActionList>

    <postInstallationActionList>
        <!-- change permissions of all binaries -->
        <changePermissions files="${installdir}/java/bin/*" permissions="0755" abortOnError="0" showMessageOnError="0">
            <ruleList>
                <fileExists path="${installdir}/java/bin" />
                <platformTest negate="1" type="windows" />
            </ruleList>
        </changePermissions>

        <!-- Create symbolic links on various platforms -->
        <actionGroup>
            <ruleList>
                <platformTest type="linux" />
            </ruleList>
            <actionList>
                <createSymLink target="jcontrol" linkName="${installdir}/java/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin" />
                        <fileExists path="${installdir}/java/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="jcontrol" linkName="${installdir}/java/jre/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin" />
                        <fileExists path="${installdir}/java/jre/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/jre/lib/i386/client/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/i386/client" />
                        <fileExists path="${installdir}/java/jre/lib/i386/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/jre/lib/i386/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/i386/server" />
                        <fileExists path="${installdir}/java/jre/lib/i386/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="jcontrol" linkName="${installdir}/java/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin" />
                        <fileExists path="${installdir}/java/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/lib/i386/client/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/i386/client" />
                        <fileExists path="${installdir}/java/lib/i386/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/lib/i386/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/i386/server" />
                        <fileExists path="${installdir}/java/lib/i386/libjsig.so" />
                    </ruleList>
                </createSymLink>
            </actionList>
        </actionGroup>

        <actionGroup>
            <ruleList>
                <platformTest type="linux-x64" />
            </ruleList>
            <actionList>
                <createSymLink target="jcontrol" linkName="${installdir}/java/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin" />
                        <fileExists path="${installdir}/java/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="jcontrol" linkName="${installdir}/java/jre/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin" />
                        <fileExists path="${installdir}/java/jre/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/jre/lib/amd64/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/amd64/server" />
                        <fileExists path="${installdir}/java/jre/lib/amd64/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="jcontrol" linkName="${installdir}/java/bin/ControlPanel">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin" />
                        <fileExists path="${installdir}/java/bin/jcontrol" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/lib/amd64/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/amd64/server" />
                        <fileExists path="${installdir}/java/lib/amd64/libjsig.so" />
                    </ruleList>
                </createSymLink>
            </actionList>
        </actionGroup>

        <actionGroup>
            <ruleList>
                <platformTest type="solaris-intel" />
            </ruleList>
            <actionList>
                <createSymLink target="../appletviewer" linkName="${installdir}/java/bin/amd64/appletviewer">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/appletviewer" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../extcheck" linkName="${installdir}/java/bin/amd64/extcheck">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/extcheck" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../idlj" linkName="${installdir}/java/bin/amd64/idlj">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/idlj" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jar" linkName="${installdir}/java/bin/amd64/jar">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jar" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jarsigner" linkName="${installdir}/java/bin/amd64/jarsigner">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jarsigner" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/bin/amd64/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java-rmi.cgi" linkName="${installdir}/java/bin/amd64/java-rmi.cgi">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/java-rmi.cgi" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javac" linkName="${installdir}/java/bin/amd64/javac">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/javac" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javadoc" linkName="${installdir}/java/bin/amd64/javadoc">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/javadoc" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javah" linkName="${installdir}/java/bin/amd64/javah">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/javah" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javap" linkName="${installdir}/java/bin/amd64/javap">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/javap" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jcmd" linkName="${installdir}/java/bin/amd64/jcmd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jcmd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jconsole" linkName="${installdir}/java/bin/amd64/jconsole">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jconsole" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jdb" linkName="${installdir}/java/bin/amd64/jdb">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jdb" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jdeps" linkName="${installdir}/java/bin/amd64/jdeps">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jdeps" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jhat" linkName="${installdir}/java/bin/amd64/jhat">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jhat" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jinfo" linkName="${installdir}/java/bin/amd64/jinfo">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jinfo" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/bin/amd64/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jmap" linkName="${installdir}/java/bin/amd64/jmap">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jmap" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jps" linkName="${installdir}/java/bin/amd64/jps">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jps" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jrunscript" linkName="${installdir}/java/bin/amd64/jrunscript">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jrunscript" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jsadebugd" linkName="${installdir}/java/bin/amd64/jsadebugd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jsadebugd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstack" linkName="${installdir}/java/bin/amd64/jstack">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jstack" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstat" linkName="${installdir}/java/bin/amd64/jstat">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jstat" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstatd" linkName="${installdir}/java/bin/amd64/jstatd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jstatd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/bin/amd64/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../native2ascii" linkName="${installdir}/java/bin/amd64/native2ascii">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/native2ascii" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/bin/amd64/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/bin/amd64/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/bin/amd64/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmic" linkName="${installdir}/java/bin/amd64/rmic">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/rmic" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/bin/amd64/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/bin/amd64/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../schemagen" linkName="${installdir}/java/bin/amd64/schemagen">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/schemagen" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../serialver" linkName="${installdir}/java/bin/amd64/serialver">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/serialver" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/bin/amd64/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/bin/amd64/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/bin/amd64/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../wsgen" linkName="${installdir}/java/bin/amd64/wsgen">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/wsgen" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../wsimport" linkName="${installdir}/java/bin/amd64/wsimport">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/wsimport" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../xjc" linkName="${installdir}/java/bin/amd64/xjc">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/xjc" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/jre/bin/amd64/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/jre/bin/amd64/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/jre/bin/amd64/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/jre/bin/amd64/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/jre/bin/amd64/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/jre/bin/amd64/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/jre/bin/amd64/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/jre/bin/amd64/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/jre/bin/amd64/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/jre/bin/amd64/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/jre/bin/amd64/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/amd64" />
                        <fileExists path="${installdir}/java/jre/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/jre/lib/amd64/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/amd64/server" />
                        <fileExists path="${installdir}/java/jre/lib/amd64/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/bin/amd64/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/bin/amd64/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/bin/amd64/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/bin/amd64/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/bin/amd64/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/bin/amd64/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/bin/amd64/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/bin/amd64/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/bin/amd64/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/bin/amd64/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/bin/amd64/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/amd64" />
                        <fileExists path="${installdir}/java/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/lib/amd64/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/amd64/server" />
                        <fileExists path="${installdir}/java/lib/amd64/libjsig.so" />
                    </ruleList>
                </createSymLink>
            </actionList>
        </actionGroup>

        <actionGroup>
            <ruleList>
                <platformTest type="solaris-sparc" />
            </ruleList>
            <actionList>
                <createSymLink target="../appletviewer" linkName="${installdir}/java/bin/sparcv9/appletviewer">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/appletviewer" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../extcheck" linkName="${installdir}/java/bin/sparcv9/extcheck">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/extcheck" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../idlj" linkName="${installdir}/java/bin/sparcv9/idlj">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/idlj" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jar" linkName="${installdir}/java/bin/sparcv9/jar">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jar" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jarsigner" linkName="${installdir}/java/bin/sparcv9/jarsigner">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jarsigner" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/bin/sparcv9/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java-rmi.cgi" linkName="${installdir}/java/bin/sparcv9/java-rmi.cgi">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/java-rmi.cgi" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javac" linkName="${installdir}/java/bin/sparcv9/javac">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/javac" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javadoc" linkName="${installdir}/java/bin/sparcv9/javadoc">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/javadoc" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javah" linkName="${installdir}/java/bin/sparcv9/javah">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/javah" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../javap" linkName="${installdir}/java/bin/sparcv9/javap">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/javap" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jcmd" linkName="${installdir}/java/bin/sparcv9/jcmd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jcmd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jconsole" linkName="${installdir}/java/bin/sparcv9/jconsole">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jconsole" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jdb" linkName="${installdir}/java/bin/sparcv9/jdb">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jdb" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jdeps" linkName="${installdir}/java/bin/sparcv9/jdeps">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jdeps" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jhat" linkName="${installdir}/java/bin/sparcv9/jhat">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jhat" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jinfo" linkName="${installdir}/java/bin/sparcv9/jinfo">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jinfo" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/bin/sparcv9/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jmap" linkName="${installdir}/java/bin/sparcv9/jmap">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jmap" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jps" linkName="${installdir}/java/bin/sparcv9/jps">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jps" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jrunscript" linkName="${installdir}/java/bin/sparcv9/jrunscript">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jrunscript" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jsadebugd" linkName="${installdir}/java/bin/sparcv9/jsadebugd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jsadebugd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstack" linkName="${installdir}/java/bin/sparcv9/jstack">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jstack" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstat" linkName="${installdir}/java/bin/sparcv9/jstat">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jstat" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jstatd" linkName="${installdir}/java/bin/sparcv9/jstatd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jstatd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/bin/sparcv9/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../native2ascii" linkName="${installdir}/java/bin/sparcv9/native2ascii">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/native2ascii" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/bin/sparcv9/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/bin/sparcv9/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/bin/sparcv9/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmic" linkName="${installdir}/java/bin/sparcv9/rmic">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/rmic" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/bin/sparcv9/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/bin/sparcv9/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../schemagen" linkName="${installdir}/java/bin/sparcv9/schemagen">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/schemagen" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../serialver" linkName="${installdir}/java/bin/sparcv9/serialver">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/serialver" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/bin/sparcv9/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/bin/sparcv9/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/bin/sparcv9/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../wsgen" linkName="${installdir}/java/bin/sparcv9/wsgen">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/wsgen" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../wsimport" linkName="${installdir}/java/bin/sparcv9/wsimport">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/wsimport" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../xjc" linkName="${installdir}/java/bin/sparcv9/xjc">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/xjc" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/jre/bin/sparcv9/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/jre/bin/sparcv9/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/jre/bin/sparcv9/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/jre/bin/sparcv9/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/jre/bin/sparcv9/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/jre/bin/sparcv9/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/jre/bin/sparcv9/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/jre/bin/sparcv9/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/jre/bin/sparcv9/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/jre/bin/sparcv9/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/jre/bin/sparcv9/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/bin/sparcv9" />
                        <fileExists path="${installdir}/java/jre/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="libjdgaSUNWffb.so" linkName="${installdir}/java/jre/lib/sparcv9/libjdgaSUNWafb.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/sparcv9" />
                        <fileExists path="${installdir}/java/jre/lib/sparcv9/libjdgaSUNWffb.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/jre/lib/sparcv9/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/jre/lib/sparcv9/server" />
                        <fileExists path="${installdir}/java/jre/lib/sparcv9/libjsig.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../java" linkName="${installdir}/java/bin/sparcv9/java">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/java" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../jjs" linkName="${installdir}/java/bin/sparcv9/jjs">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/jjs" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../keytool" linkName="${installdir}/java/bin/sparcv9/keytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/keytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../orbd" linkName="${installdir}/java/bin/sparcv9/orbd">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/orbd" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../pack200" linkName="${installdir}/java/bin/sparcv9/pack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/pack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../policytool" linkName="${installdir}/java/bin/sparcv9/policytool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/policytool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmid" linkName="${installdir}/java/bin/sparcv9/rmid">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/rmid" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../rmiregistry" linkName="${installdir}/java/bin/sparcv9/rmiregistry">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/rmiregistry" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../servertool" linkName="${installdir}/java/bin/sparcv9/servertool">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/servertool" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../tnameserv" linkName="${installdir}/java/bin/sparcv9/tnameserv">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/tnameserv" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../unpack200" linkName="${installdir}/java/bin/sparcv9/unpack200">
                    <ruleList>
                        <fileExists path="${installdir}/java/bin/sparcv9" />
                        <fileExists path="${installdir}/java/bin/unpack200" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="libjdgaSUNWffb.so" linkName="${installdir}/java/lib/sparcv9/libjdgaSUNWafb.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/sparcv9" />
                        <fileExists path="${installdir}/java/lib/sparcv9/libjdgaSUNWffb.so" />
                    </ruleList>
                </createSymLink>
                <createSymLink target="../libjsig.so" linkName="${installdir}/java/lib/sparcv9/server/libjsig.so">
                    <ruleList>
                        <fileExists path="${installdir}/java/lib/sparcv9/server" />
                        <fileExists path="${installdir}/java/lib/sparcv9/libjsig.so" />
                    </ruleList>
                </createSymLink>
            </actionList>
        </actionGroup>


	<!-- create Java launcher using preferred JRE -->
	<createJavaLaunchers>
	    <destination>${java_launcher_destination}</destination>
	    <explanation>${msg(Installer.Java.CreateLaunchers.Explanation)}</explanation>
	    <progressText>${msg(Installer.Java.CreateLaunchers.Text)}</progressText>
	    <javaLauncherList>
		<javaLauncher>
		    <allowCommandLineArguments>1</allowCommandLineArguments>
		    <arguments>${java_launcher_arguments}</arguments>
		    <binaryName>${java_launcher_binary_name}</binaryName>
		    <classpath>${java_launcher_classpath}</classpath>
		    <jarFile>${java_launcher_jar}</jarFile>
		    <mainClass>${java_launcher_mainClass}</mainClass>
		    <preferredJavaBinary>${java_executable}</preferredJavaBinary>
		    <runInConsole>0</runInConsole>
		    <vmParameters>${java_launcher_vm_parameters}</vmParameters>
		    <windowsResourceFileVersion>${project.version}</windowsResourceFileVersion>
		    <workingDirectory>${java_launcher_destination}</workingDirectory>
		</javaLauncher>
	    </javaLauncherList>
	    <ruleList>
                <isTrue value="${java_create_launcher}"/>
	    </ruleList>
	</createJavaLaunchers>

	<!-- create start menu shortcut(s) on Microsoft Windows -->
	<actionGroup>
	    <actionList>
		<setInstallerVariable>
		    <name>java_launcher_startmenudirectory</name>
		    <value>${windows_folder_programs}</value>
		</setInstallerVariable>
		<setInstallerVariable>
		    <name>java_launcher_startmenudirectory</name>
		    <value>${windows_folder_common_programs}</value>
		    <ruleList>
			<compareText logic="does_not_equal" text="${project.installationScope}" value="user"/>
			<isTrue value="${installer_is_root_install}"/>
		    </ruleList>
		</setInstallerVariable>
		<setInstallerVariable>
		    <name>java_launcher_startmenudirectory</name>
		    <value>${java_launcher_startmenudirectory}/${project.startMenuGroupName}</value>
		</setInstallerVariable>
		<createDirectory>
		    <path>${java_launcher_startmenudirectory}</path>
		</createDirectory>
		<createShortcuts>
		    <destination>${java_launcher_startmenudirectory}</destination>
		    <explanation>${msg(Installer.Java.CreateLauncherShortcuts.Explanation)}</explanation>
		    <progressText>${msg(Installer.Java.CreateLauncherShortcuts.Text)}</progressText>
		    <shortcutList>
			<startMenuShortcut>
			    <comment>${java_launcher_binary_name}</comment>
			    <name>${java_launcher_startmenu_shortcut_name}</name>
			    <runAsAdmin>0</runAsAdmin>
			    <runInTerminal>0</runInTerminal>
			    <windowsExec>${java_launcher_destination}/${java_launcher_binary_name}</windowsExec>
			    <windowsExecArgs></windowsExecArgs>
			    <windowsIcon></windowsIcon>
			    <windowsPath>${java_launcher_destination}</windowsPath>
			</startMenuShortcut>
		    </shortcutList>
		</createShortcuts>
	    </actionList>
	    <ruleList>
		<platformTest type="windows"/>
		<isTrue value="${java_launcher_add_to_win_startmenu}"/>
                <isTrue value="${java_create_launcher}"/>
	    </ruleList>
	</actionGroup>
    </postInstallationActionList>
</component>
