In Resources/Java Products/Settings, specify an installed JRE directory to be bundled
Just watch how AdvancedInstaller puts Java files in a jre/ subdirectory (by default) of the Application Folder. Obviously, this assumes a JRE is regularly installed on the development system.
Define one or more Java Product in Resources/Java Products/Products, and configure Java options here.
Let's say, this is Method 1. Alternatively, there is
Method 2:
Copy a complete Java (JRE) directory in the Application Folder.
AdvancedInstaller, probably, is not be aware this is a JRE. It should treat it as folder with arbitrary resources.
To later run the application, add a simple .bat file in the application folder:
Code: Select all
jre/bin/java -jar OurFineApplication.jarFurthermore, Method 2 does not require the bundled JRE to be installed on the development system.
Note: It's even possible to mix both Methods by bundling a JRE (Method 1), but starting with the batchfile of Method 2.
Now, what exactly does Method 1 ? What are the benefits ?
(Note that this is not about saving the licence fee but about really understanding the Java feature.)
Many Thanks,
Ruben
FOLLOW US
Get the latest news in Application Packaging