Export a jar from a jave project in eclipse

Hi,

I have an eclipse java project, it depends on some external jars. Is there a way for me to export the project as a jar, which includes those other jars embedded somehow? All I want to do is export one single jar so I can take it to another machine and run it, without having to link to the other jars externally.

Thanks
DJ_AM_JuiceboxAsked:
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.

Gurvinder Pal SinghCommented:
you just have to include the other jars in that project, it will be automatically included in that jar that you are exporting out of the project
0
DJ_AM_JuiceboxAuthor Commented:
Hi gurvinder372,

What do you mean by "include"? I'm using eclipse helios. To link to those external jars, I right click my project, choose properties. Click on Java Build Path. Click the Libraries item. Hit the Add External JARs button. I then choose the external jar files I need to link to.

Do I need to somehow import the jars locally into the project somehow, or is doing the above what you mean by "include" ?

Thanks!
0
Gurvinder Pal SinghCommented:
If it is already a jar file, then you have to do as you have mentioned. Goto java build path, goto library tab, and include libraries
If the jar file you are looking for is the project in the same workspace, then you need to Goto java build path, goto Project tab, and include projects.

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Sathish David Kumar NArchitectCommented:
>>>>>>Is there a way for me to export the project as a jar
S you can add . Which IDE your Using ?


>>>>>>which includes those other jars embedded somehow? All I want to do is export one single jar so I can take it to another machine and run it, without having to link to the other jars externally.

Eclispe
Just right click on you appplication export--->export---->java-->Jar

and check whether your jar file are selected ....



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
Sathish David Kumar NArchitectCommented:
take the created jar and put it in web-inf/lib (class path)
0
objectsCommented:
you can use this
http://fjep.sourceforge.net/
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
Java

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.