<launch4jConfig>
  <dontWrapJar>true</dontWrapJar>
  <headerType>console</headerType>
  <jar>lib</jar>
  <outfile>work/processing-java.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir>.</chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>false</customProcName>
  <stayAlive>false</stayAlive>
  <manifest></manifest>

  <!-- We don't set the icon for this app to avoid confusion
       with the PDE itself (and we don't have a separate icon...yet) -->

  <classPath>
    <mainClass>processing.mode.java.Commander</mainClass>

    <cp>lib/*.jar</cp>
    <cp>core/library/*.jar</cp>
    <cp>modes/java/mode/*.jar</cp>

    <!-- If using a full JDK, link to the tools.jar file -->
    <!-- <cp>%EXEDIR%/java/lib/tools.jar</cp> -->
  </classPath>

  <jre>
    <path>java</path>
    <!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
    <!-- <opt>-Djava.ext.dirs="%EXEDIR%\\java\\lib\\ext"</opt> -->
    <!-- Prevent a user-installed JNA from conflicting with our version.
         https://github.com/processing/processing/issues/2239 -->
    <opt>-Djna.nosys=true</opt>
    <!-- starting in 4.0 beta 3, Java 17 is required -->
    <minVersion>17.0.1</minVersion>
    <!-- increase available per PDE X request -->
    <maxHeapSize>512</maxHeapSize>
  </jre>

  <messages>
    <startupErr>An error occurred while starting the application.</startupErr>
    <bundledJreErr>This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted. If running from a folder with non-ASCII characters, try moving this folder to another location.</bundledJreErr>
    <jreVersionErr>Required files could not be found. If running from a folder with non-ASCII characters, try moving this folder to another location.</jreVersionErr>
    <launcherErr>The registry refers to a nonexistent Java installation or the runtime is corrupted.</launcherErr>
    <instanceAlreadyExistsMsg>An application instance is already running.</instanceAlreadyExistsMsg>
  </messages>
</launch4jConfig>
