Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Executing an RCP application from a single JAR/ZIP file?
Executing an RCP application from a single JAR/ZIP file? [message #461563] Fri, 12 January 2007 08:57 Go to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Is it possible to build a single ZIP/JAR file that contains everything
necessary for application execution and run from that file?

I currently do this with my application by simply unpacking all of the
required plugin files into a directory and putting it into a single JAR,
however, this means I can't actually start Eclipse (this is a
headless/server application, so I don't really need to start Eclipse).

The problem with my current implementation is I want to expose the
application as a web service, and I want to take advantage of invoking
the application dynamically so I can test it. This will require
actually starting Eclipse, which will preclude using my building the
single JAR as I have described above.

I want to put everything into a single file for deployment purposes.
This application will be deployable in hosted environments where only a
single JAR can be deployed and it must be in one of the app server
directories.

Thanks,

Francis


Re: Executing an RCP application from a single JAR/ZIP file? [message #461568 is a reply to message #461563] Fri, 12 January 2007 14:43 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
No.

Alex.
Re: Executing an RCP application from a single JAR/ZIP file? [message #461608 is a reply to message #461563] Sat, 13 January 2007 15:38 Go to previous messageGo to next message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 106
Registered: July 2009
Senior Member
In article <eo7ii5$ghj$1@utils.eclipse.org>, francisu@ieee.org says...
> Is it possible to build a single ZIP/JAR file that contains everything
> necessary for application execution and run from that file?
>

Try FatJar --- http://fjep.sourceforge.net
Re: Executing an RCP application from a single JAR/ZIP file? [message #461613 is a reply to message #461608] Sat, 13 January 2007 17:38 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Gerald Rosenberg wrote:
>
> Try FatJar --- http://fjep.sourceforge.net

FatJar is a plugin (AFAIK) that will take multiple jars for a java
project and jar them up into one uber-jar. Of course, if you use 3rd
party jars you have to be careful that their license allows it.

But as Alex mentioned, that won't help you with eclipse/RCP. The
plugins *must* be separate jars/directories in the <rcp_app>/plugins
directory.

Later,
PW


Test - please ignore [message #461618 is a reply to message #461563] Sat, 13 January 2007 20:59 Go to previous messageGo to next message
Rick Ross is currently offline Rick RossFriend
Messages: 3
Registered: July 2009
Junior Member
This is a test. Please ignore.
Re: Executing an RCP application from a single JAR/ZIP file? [message #461624 is a reply to message #461563] Sun, 14 January 2007 07:45 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
We did some experiments similar to those a few years back and got something
working, however it required the writing of a classloading hook if memory
does not fail me. However I don't have more details available as I never had
the code for that.

HTH,

PaScaL


"Francis Upton" <francisu@ieee.org> wrote in message
news:eo7ii5$ghj$1@utils.eclipse.org...
> Is it possible to build a single ZIP/JAR file that contains everything
> necessary for application execution and run from that file?
>
> I currently do this with my application by simply unpacking all of the
> required plugin files into a directory and putting it into a single JAR,
> however, this means I can't actually start Eclipse (this is a
> headless/server application, so I don't really need to start Eclipse).
>
> The problem with my current implementation is I want to expose the
> application as a web service, and I want to take advantage of invoking the
> application dynamically so I can test it. This will require actually
> starting Eclipse, which will preclude using my building the single JAR as
> I have described above.
>
> I want to put everything into a single file for deployment purposes. This
> application will be deployable in hosted environments where only a single
> JAR can be deployed and it must be in one of the app server directories.
>
> Thanks,
>
> Francis
Re: Executing an RCP application from a single JAR/ZIP file? [message #461628 is a reply to message #461563] Sun, 14 January 2007 21:11 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Thanks for your responses. My current approach is not to use a
webservice, but just to use a plain servlet and use the the new Equinox
HTTP support which allows the eclipse environment to be started from a
servlet request and the launched environment to exist in the webapps
directory of the app server. This allows the whole thing to be packaged
as a WAR file which is then expanded by the app server.

Francis

Francis Upton wrote:
> Is it possible to build a single ZIP/JAR file that contains everything
> necessary for application execution and run from that file?
>
> I currently do this with my application by simply unpacking all of the
> required plugin files into a directory and putting it into a single JAR,
> however, this means I can't actually start Eclipse (this is a
> headless/server application, so I don't really need to start Eclipse).
>
> The problem with my current implementation is I want to expose the
> application as a web service, and I want to take advantage of invoking
> the application dynamically so I can test it. This will require
> actually starting Eclipse, which will preclude using my building the
> single JAR as I have described above.
>
> I want to put everything into a single file for deployment purposes.
> This application will be deployable in hosted environments where only a
> single JAR can be deployed and it must be in one of the app server
> directories.
>
> Thanks,
>
> Francis


Previous Topic:RCP and JNI lib
Next Topic:Class cannot be resolved to a type
Goto Forum:
  


Current Time: Sat May 11 12:43:25 GMT 2024

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

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

Back to the top