I try to make an exe
file of a jar
file. I get a error like this:
"classpath does not contain main classes"
This error is from the program Excelsior.
I try to make an exe
file of a jar
file. I get a error like this:
"classpath does not contain main classes"
This error is from the program Excelsior.
Your manifest file should be like-
Manifest-Version: 1.0
Created-By: 1.7.0_67 (Oracle Corporation)
Main-Class: MyMainClass
Class-Path: .
You must have missed "Main-Class" or "Class-Path" attribute. You can manually add these entries by editing manifest file.
Also, if you are looking for other alternatives, this will help you- How can I convert my Java program to an .exe file?