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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Just show which is your main classe  by clicking on Browse button next to Main-Class label...
If its a plugin-that does not have a main class and should be run within other application you should put your jar on classpath and run the main class of the other application....
zolfAuthor Commented:

here is the shot when i select the my 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
>>here is the shot ...

Looks fine - what's the problem now?
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

zolfAuthor Commented:

when i clcik on the jar i get main class not found error
You can select only .class files from the last screen(select files option) of the Fat jar explorer window. See the attached pic. Uncheck all .java files from the list.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day 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
zolfAuthor Commented:

>>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 ?)
zolfAuthor Commented:

yes it contains the main class.let me try again
Show us the manifest after unpacking the jar..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.