However, you might want to receive notifications about multiple startups together with the command line parameters. If you have associated you executable with a file extension, you will likely want to handle multiple invocations in the same instance of your application. Alternatively, you might want to perform some action when another startup occurs.
com.exe4j.Controller.registerStartupListener(StartupListener startupListener)
.
Your implementation of startupPerformed(String parameters)
of the
StartupListener interface will then be notified if another startup occurs.
The launcher API of exe4j is contained in exe4jlib.jar which can be found in the top level directory of your exe4j installation.
Note: you do not have to add it to the classpath of your application and distribute it along with it, since that file is always contained in the executable.