Skip to main content



      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 03:57 Go to next message
Eclipse UserFriend
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 09:43 Go to previous messageGo to next message
Eclipse UserFriend
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 10:38 Go to previous messageGo to next message
Eclipse UserFriend
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 12:38 Go to previous messageGo to next message
Eclipse UserFriend
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 15:59 Go to previous messageGo to next message
Eclipse UserFriend
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 02:45 Go to previous messageGo to next message
Eclipse UserFriend
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 16:11 Go to previous message
Eclipse UserFriend
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 Mar 15 23:08:25 EDT 2025

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

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

Back to the top