All-In-One Protector offers a perfect protection for .JAR files. They are protected against decompilation as they are not visible in the file system - See Virtual Zone.
Download the Java starter application (jarstart.exe) and place it together with your .JAR file in a new folder. The folder can contain any number of .JAR files.
Now import all files and make jarstart.exe the start file.
Simple start option
If your java application always needs the same start parameters, then you can place it in the field: command line parameter for EXE file . Select button Options, TAB EXE Options.
There are All-In-One Protector specific variables:
•-jarrun - runs the Java Virtual machine depending on registry settings
•%path% - this is the complete path of the application (the path specification has to be in quotation marks)
•%envpath% - this is the environment path variable of the operating system (in a batch file the name would be %path% but it has to be replaced with this special variable %envpath%)
Complex start options
If the java applications needs complex start options (e.g. using a .bat file) then leave the field: command line parameter for EXE file empty.
Invoke the All-In-One Player using command line parameters.
Example
The name of the All-In-One Player is javatest.exe. The following command starts javatest.exe with a command line parameter. The Java Runtime would be loaded from the folder .\PortableApps\CommonFiles\Java\bin\javaw.exe, a path is set with the special variable %envpath% (means operating system variable %path%) and the jar file myapp.jar is loaded.
application\javatest.exe .\PortableApps\CommonFiles\Java\bin\javaw.exe -Duser.home=".." -Djava.library.path="%ENVPATH%;application\;" -jar "myapp.jar"