I am working with JBuilder 2005 and I need to generate an jar executable from my application. I have been searched and I've found that I have to create a main.mf file and the content of the file must be:
after that in command line I have to do this:
“C:\filesprogram\Java\jdk1.5.0_06\bin\jar” cvfm file.jar Main.mf *.class
It work, it creates me a jar file, but when I execute in my application:
Failed to load Main-Class manifest attribue from
I dont know why, do you know?
I hope so!
First, open that jar file with winzip/winrar and see if manifest file is there. Then check your main class (The class which has the "static main" method). You should write it with its package name. So if it is class X in Y package, you should write "Y.X" in your manifest file as the Main-Class.
Read the tutorial below for more information:
Setting an Application's Entry Point (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)
If your applet is inside a JAR file, you just need to point to the JAR file from your html file.
now what about applets?
Just use JB Wizards Archive Builder. I am not sure of the v.5 but v.8 has it :)