We have a jar that contains the following:
1. META-INF with manifest
2.BOOT-INF with the following folders:
2.1 classes (all our code is under this folder)
2.2 lib
3. org
The manifest file looks like:
Manifest-Version: 1.0
Start-Class: com.x.y.Main
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Version: 1.0.0-local-DEV
Spring-Boot-Version: 1.5.7.RELEASE
Main-Class: org.springframework.boot.loader.JarLauncher
We have a second main class that responsible for start and stop the service as requested by you: com.x.Bootstrap (extends JarLauncher).
We defined a new java product with main class : com.x.Bootstrap
When running the installer we got the following exception:
Error: Could not find or load main class com.x.Bootstrap
The main class is in BOOT-INF\classes\com\x\Bootstrap inside the jar.
What need to be defined in the Main class in this case case?
*Notice that under the BOOT-INF\lib and org we have all the dependencies jars
FOLLOW US
Get the latest news in Application Packaging