Home » Newcomers » Newcomers » Generate an application with ALL necessary files
Generate an application with ALL necessary files [message #256504] |
Fri, 16 May 2008 14:56 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: arick.pobox.com
Is there a convenient way within Eclipse to say "Generate a jar file
with all the files I need, other then the JVM files, to run this
application from the command line."
With JPA, Hibernate, SWT, RCP etc. in the mix, the number of jars and
libraries in the build path is huge. In many cases, figuring which ones
really don't need to be there, and which ones do, is a overwhelming task.
I've gone through several of the Eclipse books, read what I can find on
the "Export" command [I've only been able to get it to export my source
code] and so far the only options I seem to be coming up with are:
1) RCP - which requires the same information,
2) JWS - which also requires the same information.
TBL:
1) Can Eclipse auto-generate the needed jar file?
2) If not, can Eclipse generate a list of the files that my application
is depending on?
-- A. Rick
|
|
|
Re: Generate an application with ALL necessary files [message #256512 is a reply to message #256504] |
Fri, 16 May 2008 15:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: merks.ca.ibm.com
A. Rick,
Are you building a plugin-based application? In the launcher you can
look a the plugins tab to determine all your dependencies. I.e., choose
your application and ask it to also include all the required plugins.
This will provide the information about what minimally is needed to
support your application... (I don't think there's anything that
directly does what you're asking.)
A. Rick Anderson wrote:
> Is there a convenient way within Eclipse to say "Generate a jar file
> with all the files I need, other then the JVM files, to run this
> application from the command line."
>
> With JPA, Hibernate, SWT, RCP etc. in the mix, the number of jars and
> libraries in the build path is huge. In many cases, figuring which
> ones really don't need to be there, and which ones do, is a
> overwhelming task.
>
> I've gone through several of the Eclipse books, read what I can find
> on the "Export" command [I've only been able to get it to export my
> source code] and so far the only options I seem to be coming up with are:
> 1) RCP - which requires the same information,
> 2) JWS - which also requires the same information.
>
> TBL:
> 1) Can Eclipse auto-generate the needed jar file?
> 2) If not, can Eclipse generate a list of the files that my
> application is depending on?
>
> -- A. Rick
|
|
|
Re: Generate an application with ALL necessary files [message #256519 is a reply to message #256512] |
Fri, 16 May 2008 16:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: arick.pobox.com
I will go down the RCP path if I absolutely have to. Eventually, I
absolutely want to go with RCP. However, initially I would prefer to
avoid it because it represents yet another learning curve, additional
complexity, its own UI framework and plug-in collection. All of which
add significant risk to a very tight schedule.
As I recall, won't the launcher just tell me about the plug-ins? I
don't recall that it picks up on your build path libraries. The
Hibernate libraries that I am using were configured by MyEclpse. I know
that for what I am doing, there is a lot of extraneous stuff in there.
What I may do is just copy all the files listed to a directory, and use
JWS as described on the article at: http://www.eclipse.org/swt/jws/.
It seems strange to me, that after all these years and with the
maturation of the Eclipse Java IDE, that such a fundamental and
universal feature that is needed by almost every Java developer
(generate a stand-alone application) is almost completely and totally
unsupported. <sigh> Too bad I don't run the universe :-)
Ed Merks wrote:
> A. Rick,
>
> Are you building a plugin-based application? In the launcher you can
> look a the plugins tab to determine all your dependencies. I.e., choose
> your application and ask it to also include all the required plugins.
> This will provide the information about what minimally is needed to
> support your application... (I don't think there's anything that
> directly does what you're asking.)
>
>
> A. Rick Anderson wrote:
>
>> Is there a convenient way within Eclipse to say "Generate a jar file
>> with all the files I need, other then the JVM files, to run this
>> application from the command line."
>>
>> With JPA, Hibernate, SWT, RCP etc. in the mix, the number of jars and
>> libraries in the build path is huge. In many cases, figuring which
>> ones really don't need to be there, and which ones do, is a
>> overwhelming task.
>>
>> I've gone through several of the Eclipse books, read what I can find
>> on the "Export" command [I've only been able to get it to export my
>> source code] and so far the only options I seem to be coming up with are:
>> 1) RCP - which requires the same information,
>> 2) JWS - which also requires the same information.
>>
>> TBL:
>> 1) Can Eclipse auto-generate the needed jar file?
>> 2) If not, can Eclipse generate a list of the files that my
>> application is depending on?
>>
>> -- A. Rick
|
|
|
Re: Generate an application with ALL necessary files [message #256527 is a reply to message #256519] |
Fri, 16 May 2008 17:37 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
A. Rick Anderson wrote:
> I will go down the RCP path if I absolutely have to. Eventually, I
> absolutely want to go with RCP. However, initially I would prefer to
> avoid it because it represents yet another learning curve, additional
> complexity, its own UI framework and plug-in collection. All of which
> add significant risk to a very tight schedule.
>
> As I recall, won't the launcher just tell me about the plug-ins? I
> don't recall that it picks up on your build path libraries. The
> Hibernate libraries that I am using were configured by MyEclpse. I know
> that for what I am doing, there is a lot of extraneous stuff in there.
>
> What I may do is just copy all the files listed to a directory, and use
> JWS as described on the article at: http://www.eclipse.org/swt/jws/.
>
> It seems strange to me, that after all these years and with the
> maturation of the Eclipse Java IDE, that such a fundamental and
> universal feature that is needed by almost every Java developer
> (generate a stand-alone application) is almost completely and totally
> unsupported. <sigh> Too bad I don't run the universe :-)
It is not accurate to say that "almost every Java developer" needs the
ability to package a stand-alone application. In fact, I'd say that such
developers are in the vast minority these days - most Java projects seem
to be application-server hosted. Even Eclipse-based projects are not
stand-alone in that they require the Eclipse platform (and usually many
core Eclipse plugins) to run.
Anyway, what you're asking for is not a simple use case; there are tons
of variables involved that make building such a tool a significant
effort both in terms of usability and completeness.
There are tools out there that purport to build one big fat JAR out of
your own code and all the libraries that you use, but I'm skeptical
about the legality of doing that as well as the accuracy in this day of
frameworks that load classes dynamically.
If you're writing an Eclipse-based application (either plugins or RCP)
you should be able to leverage the PDE build tools to do much of the
work for you.
The PDE documentation has lots of information on various scenarios.
Alas, it is a sub-specialty of Eclipse development that I, personally,
have not explored much so I can't offer a lot of direct help.
I suggest you read whatever docs are included in the Help and as
articles on www.eclipse.org, and then use the eclipse.platform,
eclipse.platform.pde, and eclipse.platform.rcp newsgroups to answer
specific questions.
Hope this helps,
Eric
> Ed Merks wrote:
>> A. Rick,
>>
>> Are you building a plugin-based application? In the launcher you can
>> look a the plugins tab to determine all your dependencies. I.e.,
>> choose your application and ask it to also include all the required
>> plugins. This will provide the information about what minimally is
>> needed to support your application... (I don't think there's anything
>> that directly does what you're asking.)
>>
>>
>> A. Rick Anderson wrote:
>>
>>> Is there a convenient way within Eclipse to say "Generate a jar file
>>> with all the files I need, other then the JVM files, to run this
>>> application from the command line."
>>>
>>> With JPA, Hibernate, SWT, RCP etc. in the mix, the number of jars and
>>> libraries in the build path is huge. In many cases, figuring which
>>> ones really don't need to be there, and which ones do, is a
>>> overwhelming task.
>>>
>>> I've gone through several of the Eclipse books, read what I can find
>>> on the "Export" command [I've only been able to get it to export my
>>> source code] and so far the only options I seem to be coming up with
>>> are:
>>> 1) RCP - which requires the same information,
>>> 2) JWS - which also requires the same information.
>>>
>>> TBL:
>>> 1) Can Eclipse auto-generate the needed jar file?
>>> 2) If not, can Eclipse generate a list of the files that my
>>> application is depending on?
>>>
>>> -- A. Rick
|
|
|
Goto Forum:
Current Time: Sat Aug 17 06:51:37 GMT 2024
Powered by FUDForum. Page generated in 0.06769 seconds
|