Results 1 to 6 of 6
Thread: Jar Files
- 05-07-2007, 07:44 PM #1
Member
- Join Date
- May 2007
- Posts
- 39
- Rep Power
- 0
Jar Files
Hello everybody
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:
Main-class: classMain
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
application rout
I dont know why, do you know?
I hope so!
thank you
alanLast edited by Alan; 06-01-2007 at 01:39 AM.
- 05-07-2007, 10:14 PM #2levent Guest
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)
- 05-10-2007, 04:22 PM #3
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
First the file is manifest.mf
This file must content the following line
Main-Class: MyPackage.MyClass
Setting an Application's Entry Point (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)
- 07-28-2007, 11:28 PM #4
Member
- Join Date
- Jul 2007
- Posts
- 23
- Rep Power
- 0
now what about applets?
- 07-28-2007, 11:50 PM #5levent Guest
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?
- 01-01-2009, 04:12 AM #6
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
Similar Threads
-
Writing to files within jar files
By erhart in forum Advanced JavaReplies: 0Last Post: 02-04-2008, 02:50 AM -
Text and image files within jar files
By erhart in forum Advanced JavaReplies: 8Last Post: 01-19-2008, 04:43 AM -
how to convert mpeg files to .wav files
By christina in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:14 AM -
convert xls files into pdf files
By bbq in forum New To JavaReplies: 3Last Post: 07-20-2007, 03:56 AM -
War Files
By thauber in forum New To JavaReplies: 0Last Post: 07-16-2007, 06:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks