exe4j Wizard - Configure Search Sequence

## exe4j Wizard - Configure Search Sequence |

Note: this advanced option screen is reachable by selecting the "JRE" step and choosing "Search Sequence" from the [Advanced options] popup menu or by clicking directly on the index.

In this step of the exe4j wizard, you can configure the way the exe4j executable looks for an appropriate JRE or JDK to start your Java application. The versions requirements for the JRE are specified in a different step.

| The search sequence list shows all search sequence entries that have been added so far. For new configurations, a default search sequence is pre-defined. The following types of search sequence entries are available: Search registry Directory Environment variable The control buttons on the right allow you to modify the contents of the search sequence list: Add search sequence entry (key `INS`) Invokes the search sequence entry dialog. Upon closing the search sequence entry dialog with the [OK] button, a new search sequence entry will be appended to the bottom of the search sequence list. Remove search sequence entry (key `DEL`) Removes the currently selected search sequence entry without further confirmation. Move search sequence entry up (key `ALT-UP`) Moves the selected search sequence entry up one position in the class path list. Move search sequence entry down (key `ALT-DOWN`) Moves the selected search sequence entry down one position in the class path list.

| It is possible to generate a log file that contains information about the JRE search sequence and any potential problems. In order to switch on logging, please define the environment variable `EXE4J_LOG=yes` and look for the newest text file whose name starts with `i4j_nlog_` in the Windows temp directory. This information can be used for debugging purposes. If you have a problem with JRE detection, please send this log file along with your support request.

| Tip: To distribute your own JRE, simply put the JRE in your distribution and define a directory search sequence entry with the appropriate relative path (e.g. `jre`) as the first item.

| If the entire search sequence fails, exe4j will try the location defined by the environment variable `EXE4J_JAVA_HOME`. If that fails too, an error message will be displayed asking the user to define this variable. To supply a custom variable, define an appropriate environment variable search sequence entry and customize the corresponding error message in the messages step of the wizard.