Zolf
asked on
Create Jar help
hello there,
i have installed Fat Jar Eclipse Plug-In.but when i create the jar and try to run i get error saying main class not found.can somebody guide m ehow to create a jar file of my application.below is the setting i have chosen.please help me.also i dont want the java files to be in the jar file.i only want the class files.
cheers
ZOlf
1.JPG
i have installed Fat Jar Eclipse Plug-In.but when i create the jar and try to run i get error saying main class not found.can somebody guide m ehow to create a jar file of my application.below is the setting i have chosen.please help me.also i dont want the java files to be in the jar file.i only want the class files.
cheers
ZOlf
1.JPG
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>here is the shot ...
Looks fine - what's the problem now?
Looks fine - what's the problem now?
ASKER
when i clcik on the jar i get main class not found error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The procedure you are following is correct only. Please post the following info to debug your issue.
(i) Java code that you are using.
(ii) Un-zip the .jar created using Fat jar and then copy paste the MANIFEST.MF file content here
(i) Java code that you are using.
(ii) Un-zip the .jar created using Fat jar and then copy paste the MANIFEST.MF file content here
ASKER
>>Java code that you are using.
i did not get this.what you mean
I mean actual java source code. (Does it really contain main class ?)
ASKER
yes it contains the main class.let me try again
Show us the manifest after unpacking the jar..
ASKER
here is the shot when i select the main.in my Manifest.mf file i mntion the main method
Manifest-Version: 1.0
Class-Path: sqljdbc.jar calendar-0.10.jar jcalendar-1.3.2.jar commons-logging-1.1.jar commons-collections-3.2.ja
Main-Class: com.MainForm
2.JPG