If I have jar file of java application and supporting jars then what are the steps for creating installer using installBuild tool. Also how can I start my application on windows startup after creating installer?
asked 10 Apr '12, 05:22
InstallBuilder's Java support page gives you a really good start. http://installbuilder.bitrock.com/java/
The link includes different compressed Java packages for various platforms. Just expand them; then put all of the subfolders in one place. I use these:
Each compressed package has its own java.xml. The only difference between the different java.xml files is the value of a variable called "java_bitness", where it's different for 32 vs 64 bit platforms:
So, I consolidated them into one by making two changes. Now, I can use only one java.xml in my installer package. The changes include:
I would suggest the InstallBuilder team incorporate these changes to next program update.
Finally, this java.xml component does not detect existing Java installations. So, I have another java-detect.xml component that uses <autodetectJava> and installs the new package only if Java is not detected on the host. This component also detects if the host is a Debian Linux distribution and if the users is running as superuser. It then uses apt-get to install java, no the packages here. This could be expanded to include yum for Redhat/Fedora, and other package managers for other distros. If anyone is interested in this component, I'll be happy to share it somewhere.
answered 13 May '12, 02:05
If your application is a Java jar file, you could either require the Java runtime to be installed in the target machine or bundle it within your installer.
You could also try to autodetect it using the
You could even download it at runtime:
You could also create a luncher for your jar file:
You can find additional information in our online documentation.
Regarding starting the application at startup, if you create a launcher you could just create a shortcut to the startup menu
answered 10 Apr '12, 12:20