Export libraries dependencies and jar [message #263885] |
Fri, 29 August 2008 13:26  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.08654 seconds