How to create multiple executable files

Normally Protector4J creates an executable file for each encryption task to run your application.

However, in some cases, an application may need to have more than one executable files, such as a main program, an update program or others.

If you open the output directory, you can see an executable file, and a configuration file with the same name and “.json” extension. If you need to create additional executables, just copy and rename them, for example app01[.exe] with app01.json, then open the app01.json file and modify “LibFolder” and “MainClass”

By default the executable will take all the jar files under vlxlib as the class path, you can create different LibFolder for different executables and copy the corresponding jar files to the corresponding LibFolder. For example, create an app01 folder and move all the jar files corresponding to app01 from vlxlib into it, the following file configuration shows that.

1
2
3
4
5
6
7
8
9
{
"MainClass" : "app01.MainClass",
"LibFolder" : "app01",
"Verbose" : false,
"HideConsole" : false,
"IncludeJavaFX" : true,
"Splash" : "",
"SWTApplication" : false
}