Jar + Jsmooth + Inno
Ideas: |
First by Jsmooth the jar and related resources to generate EXE, and then by Inno EXE and resource files into the installation package |
1 Download Install Jsmooth address: jsmooth.sourceforge.net |
4 |
Skecton |
|
Tick process, single case |
5 |
Executable |
You need to specify the name and location of the future generated EXE and the corresponding icon. It is best to use PNG here, the non-recognition of the ICO format that you used before |
|
|
|
Current directory If checked is relative to the directory |
|
|
|
|
|
|
|
|
After this step, it is recommended to click the Save icon, save the previous process and so on the next straight |
Connect Open |
|
|
6 |
Appliction |
It is best to first add the jars and other resources in the classpath. You can choose to embed a jar in a future EXE, which is best for protecting your source code. Finally specify the main class |
7 |
JVM Select |
Specifies the JVM version range, specifying whether to carry a separate JRE (the advantage is that the target machine can be run regardless of whether Java is installed, the disadvantage of the compression package is larger) |
8 |
JVM Configure |
Configuring JVM parameters and memory size ranges |
9 |
Compile |
|
Click on pinion to compile successfully, then go to specify directory to view run generated EXE |
|
|
|
|
This example generates a Myexe.exe |
|
|
|
|
|
|
|
The main goal of this example is to package the Ec.jar into Myexe.exe, and the others are resources and dependent files |
=======================================================================
1 |
Download install Inno Address: http://www.jrsoftware.org |
2 |
To start a new project, it's basically simple to keep the next one. |
3 |
Select EXE and dependent resources |
Note When adding additional resources, if the entire resource folder is added, the system will only add sub-files and subfolders. |
  |
|
  |
|
All if you want to keep the entire file structure, you need to put the file in a new folder, or more nested, |
|
|
|
|
This new folder name doesn't matter. |
|
|
|
|
|
|
4 |
Confirm, generate script and save, always confirm yes to end |
5 |
View the generated installer |
Can be installed test, the overall end |
Three notes and questions |
Jsmooth need to speak ec.jar embedded in the EXE, so when the installation package is not required Ec.jar is also safe |
|
|
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
jsmooth you must name the executable binary when you select it |
such as Xxx.exe |
  |
|
|
  |
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
saved script format such as Abc.jsmooth |
|
  |
|
  |
|
  |
|
  |
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
inno pit when adding resources if it's folder , After the installation will go into the sub-file all add a layer of |
  |
|
  |
|
|
|
|
|
|
|
|
|
|
|
|
Myexe.exe to run must have a JRE folder which includes the runtime environment (which can be self-contained JRE independent), and the Data and associated DLLs are placed in the directory. |
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
two questions |
|
  |
|
  |
|
  |
|
  |
|
  |
1 icon does not recognize need to get a PNG format |
  |
  |
  |
  |
  |
  |
  |
  |
2 DLL Registration and logoff |
|
|
|
|
|
|
|
|
|
Generate EXE with Jsmooth + Inno and make a simple installation package