exe4j Command Line Compiler

   


exe4j's command line compiler exe4jc.exe can be found in the bin directory of your exe4j installation. It operates on any config file with extension .exe4j that has been produced with the exe4j wizard. (exe4j.exe). The exe4j command line compiler is invoked as follows:
    exe4jc [OPTIONS] [config file]

The available options are described here. A quick help for all options is printed to the terminal when invoking

    exe4jc --help

A typical run of the exe4j command line compiler looks like this:

    exe4j version 4.0, built on 2006-09-26
    Unregistered evaluation version

    Loading config file myapp.exe4j
    Deleting temporary directory
    Compiled executable for myapp in 0.8 seconds.      
    

In order to facilitate the use of exe4j in automated build processes, the destination directory for the executable and the version text line of the splash screen can be overridden with command line options. Since the file format of exe4j's config files is xml-based, you can achieve arbitrary customizations by replacing tokens (see the ant integration help page for an example) or by applying XSLT stylesheets to the config file.