It is also possible to autodetect Java and install it if it is not present, however, we recommend either bundling a JRE or only detecting that it is not present as running a silent Java installer may cause many issues - such as failing if one or more browsers has Java libraries loaded or there is a Java application running. samplejavaapp Sample Java Application default Default Component 1 1 1. Īnd then add tag to include java.xml component to your project - for example: Simply download the required JRE/JDK package(s) from. InstallBuilder provides ready to use packages for bundling Java and allows easy inclusion of Java in your project. It is best to start by working on the installer one step at a time and starting off with Java as MySQL may require more work to get it done. bat script that sets it up or by running the same commands from InstallBuilder directly.
We also recommend starting off with just a single JAR (it can even be a hello world application) to first make sure you understand the process for a single JAR, then adding more JARs and using the actual application.Īs for MySQL, our recommendation is to take the noinstall zip file from or, first try to deploy MySQL manually and write down the exact steps and then try to reproduce the process - either creating a.
exe or when invoking java -jar main.jar (and adding classpath to arguments for java binary) manually. Then you should test that the JARs get installed, that the application starts both when run from. (the classpath should be semi-colon separated for all platforms). java_launcher_jar main.jar java_launcher_classpath mysql-client.jar resources.jar. You can then add your JAR files to Files section so they get installed, change project's short and full name, and change action (in GUI or XML) to point to your application's main JAR file, and set java_launcher_classpath to all additional JARs that you need to use - for example: The example on the page is a ready to use project - you can just go to XML editor in the builder, copy-paste it there and it should be enough to get you started.
You can simply start off by using our Java JRE/JDK bundles, documented in Bundling a JRE section of InstallBuilder user guide. The first thing you should try is to make an installer that just ships a single or multiple JAR files and creates a launcher (.exe) that runs it.