Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

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
SOLUTION
Avatar of wwnosal
wwnosal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

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.jar jasperreports-3.0.0.jar forms-1.2.0.jar looks-2.2.0.jar validation-2.0.1.jar binding-2.0.3.jar
Main-Class: com.MainForm
2.JPG
Avatar of CEHJ
>>here is the shot ...

Looks fine - what's the problem now?
Avatar of Zolf

ASKER


when i clcik on the jar i get main class not found error
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Zolf

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 ?)
Avatar of Zolf

ASKER


yes it contains the main class.let me try again
Avatar of wwnosal
wwnosal

Show us the manifest after unpacking the jar..