java launcher specify java executable location

Comments

1 comment

  • Avatar
    juanjo

    If you do not provide a <preferredJavaBinary>, the Java launcher will autodetect the system Java, using the first one found by default. This behaviour can be set to use the newer one using the <selectionOrder> setting:

    <createJavaLaunchers>
      <destination>${installdir}/launchers</destination>
      <javaLauncherList>
        <javaLauncher>
          <selectionOrder>newest</selectionOrder>
          <binaryName>myLauncher</binaryName>
          <jarFile>testapplication.jar</jarFile>
        </javaLauncher>
      </javaLauncherList>
    </createJavaLaunchers>
    

Please sign in to leave a comment.