Skip to main content



      Home
Home » Newcomers » Newcomers » Export libraries dependencies and jar
Export libraries dependencies and jar [message #263885] Fri, 29 August 2008 13:26 Go to next message
Eclipse UserFriend
Hi,

I have a project that have references to other projects in my workspace
and third party libraries which have dependencies to other libraries. I
need to export my single eclipse java project in a jar for run it with
java -jar myfile.jar.

How can i make the export with the required third party libraries and
other projects?, there are a easy mode to do it with eclipse?

My project have references to other eclipse projects, i suppose that i
must to export to jars files thats projects, and after, i must include
that exported jars and third party jars in my manifest file, but i dont
know if eclipse or a pluging can do it for me.

Thanks in advance.
Re: Export libraries dependencies and jar [message #263891 is a reply to message #263885] Fri, 29 August 2008 17:18 Go to previous messageGo to next message
Eclipse UserFriend
Yeray Santana Borges wrote:
> Hi,
>
> I have a project that have references to other projects in my workspace
> and third party libraries which have dependencies to other libraries. I
> need to export my single eclipse java project in a jar for run it with
> java -jar myfile.jar.
>
> How can i make the export with the required third party libraries and
> other projects?, there are a easy mode to do it with eclipse?
>
> My project have references to other eclipse projects, i suppose that i
> must to export to jars files thats projects, and after, i must include
> that exported jars and third party jars in my manifest file, but i dont
> know if eclipse or a pluging can do it for me.
>
> Thanks in advance.
>

This is a FAQ. If you have a project that has other projects on the
build path, when you set up the export of the current project as a jar,
the Eclipse dialog will give you the option of including each of the
related projects (and which parts to include). So that's no big deal IMHO.

As far as third-party libraries, that's a bit more work, and it raises
licensing issues which have been addressed here in the past. I suggest
you check the group archives
( http://www.eclipse.org/newsportal/thread.php?group=eclipse.n ewcomer).
Try searching on FatJar, which is a plug-in along the lines of what you
want. That should take you to some threads where this was thrashed out.

HTH,
Paul
Re: Export libraries dependencies and jar [message #263988 is a reply to message #263885] Mon, 01 September 2008 03:43 Go to previous message
Eclipse UserFriend
Yeray Santana Borges wrote:
> Hi,
>
> I have a project that have references to other projects in my
> workspace and third party libraries which have dependencies to other
> libraries. I need to export my single eclipse java project in a jar
> for run it with java -jar myfile.jar.
>
> How can i make the export with the required third party libraries and
> other projects?, there are a easy mode to do it with eclipse?
Assuming you already launched that code once (i.e. you have a working
launch configuration) you can simply use File > Export... > Runnable JAR
file export wizard.

Dani
>
> My project have references to other eclipse projects, i suppose that i
> must to export to jars files thats projects, and after, i must include
> that exported jars and third party jars in my manifest file, but i
> dont know if eclipse or a pluging can do it for me.
>
> Thanks in advance.
>
Previous Topic:Debugger. "step into". inconsistancy
Next Topic:"can't write cache file" Issues
Goto Forum:
  


Current Time: Tue Sep 23 07:20:50 EDT 2025

Powered by FUDForum. Page generated in 0.08654 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top