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
zolfAsked:
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.

wwnosalCommented:
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....
0
zolfAuthor Commented:

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
0
CEHJCommented:
>>here is the shot ...

Looks fine - what's the problem now?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

zolfAuthor Commented:

when i clcik on the jar i get main class not found error
0
basav_comCommented:
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.

fatjar.JPG
0

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
basav_comCommented:
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
0
zolfAuthor Commented:

>>Java code that you are using.
i did not get this.what you mean
0
basav_comCommented:
I mean actual java source code. (Does it really contain main class ?)
0
zolfAuthor Commented:

yes it contains the main class.let me try again
0
wwnosalCommented:
Show us the manifest after unpacking the jar..
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.