Create exe using launc4j java
I created an .exe file using luunch4j and build.xml ant in Java, but when I click on the .exe I get the message "could not find the main class program to exit". If I click on the .jar file it also gives me the message "Failed to load main class manifest attribute". What is the problem?
Do you have a manifest file? In the manifest file, you specify the entry point (class) where the method is used
Here's an example:
Manifest-Version: 1.0 Sealed: true Main-Class: org.example.server.Lauch Class-Path: lib\externalLib.jar
source to share