Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Command Line Launch
RAP Command Line Launch [message #54367] Mon, 22 October 2007 17:23 Go to next message
Eclipse UserFriend
Originally posted by: andreasruempel.gmx.net

Hi,

I want to launch my RAP application from command line without using the
Eclipse IDE. Certainly the Equinox launcher has to be used for that. I
have my application plug-in exported as a jar file and the RAP target
platform. Could somebody give me a short step-by-step guide, how to
perform this launch from command line? Can I use my launch configuration
file (the "OSGi Framework" or "RAP Application" launchers) somehow or do
I have to configure independently somewhere?

Thanks.

Andi
Re: RAP Command Line Launch [message #54839 is a reply to message #54367] Tue, 23 October 2007 21:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Create a folder structure as this:

/yourapp
/yourapp/startup.jar
/yourapp/configuration/config.ini
/yourapp/plugins/...

config.ini should contain:
### bundles to start
osgi.bundles=org.eclipse.equinox.common@2:start,
org.eclipse.update.configurator@start,
org.eclipse.equinox.http.servletbridge@start,
org.eclipse.equinox.http.registry@start
# update configurator will load all bundles present in the plugins
# folder of your installation
### install area (replace with your install area path)
osgi.install.area=file:///yourapp
### path to osgi runtime jar - replace path
osgi.framework=file:///yourapp/plugins/org.eclipse.osgi_3.2.1.R32x_..
### no eclipse launch
eclipse.ignoreApp=true

Start the app with
-classpath /<yourapp>/startup.jar -Dorg.osgi.service.http.port=$PORT
org.eclipse.core.launcher.Main

See also: http://www.eclipse.org/equinox/server/http_in_equinox.php

Cheers,

Jochen


Andreas Rümpel wrote:
> Hi,
>
> I want to launch my RAP application from command line without using the
> Eclipse IDE. Certainly the Equinox launcher has to be used for that. I
> have my application plug-in exported as a jar file and the RAP target
> platform. Could somebody give me a short step-by-step guide, how to
> perform this launch from command line? Can I use my launch configuration
> file (the "OSGi Framework" or "RAP Application" launchers) somehow or do
> I have to configure independently somewhere?
>
> Thanks.
>
> Andi
Re: RAP Command Line Launch [message #54865 is a reply to message #54839] Wed, 24 October 2007 04:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I'm not sure, but I thought startup.jar isn't supported with 3.3.0 anymore -
at least eclipse doesn't use it anymore.

See : http://wiki.eclipse.org/index.php/Equinox_Launcher#Startup.j ar.


Ciao
Frank

"Jochen Krause" <jkrause@innoopract.com> schrieb im Newsbeitrag
news:fflor8$hnq$1@build.eclipse.org...
> Create a folder structure as this:
>
> /yourapp
> /yourapp/startup.jar
> /yourapp/configuration/config.ini
> /yourapp/plugins/...
>
> config.ini should contain:
> ### bundles to start
> osgi.bundles=org.eclipse.equinox.common@2:start,
> org.eclipse.update.configurator@start,
> org.eclipse.equinox.http.servletbridge@start,
> org.eclipse.equinox.http.registry@start
> # update configurator will load all bundles present in the plugins
> # folder of your installation
> ### install area (replace with your install area path)
> osgi.install.area=file:///yourapp
> ### path to osgi runtime jar - replace path
> osgi.framework=file:///yourapp/plugins/org.eclipse.osgi_3.2.1.R32x_..
> ### no eclipse launch
> eclipse.ignoreApp=true
>
> Start the app with
> -classpath /<yourapp>/startup.jar -Dorg.osgi.service.http.port=$PORT
> org.eclipse.core.launcher.Main
>
> See also: http://www.eclipse.org/equinox/server/http_in_equinox.php
>
> Cheers,
>
> Jochen
>
>
> Andreas R
Re: RAP Command Line Launch [message #55300 is a reply to message #54865] Wed, 24 October 2007 19:51 Go to previous message
Eclipse UserFriend
Originally posted by: andreasruempel.gmx.net

Right, the "modern" way is to use org.eclipse.equinox.launcher,
furthermore I used the supplied org.eclipse.equinox.http.jetty instead
of Jochen's suggestion.

It works.

Andi

Frank Appel wrote:
> Hi,
>
> I'm not sure, but I thought startup.jar isn't supported with 3.3.0 anymore -
> at least eclipse doesn't use it anymore.
>
> See : http://wiki.eclipse.org/index.php/Equinox_Launcher#Startup.j ar.
>
>
> Ciao
> Frank
>
> "Jochen Krause" <jkrause@innoopract.com> schrieb im Newsbeitrag
> news:fflor8$hnq$1@build.eclipse.org...
>> Create a folder structure as this:
>>
>> /yourapp
>> /yourapp/startup.jar
>> /yourapp/configuration/config.ini
>> /yourapp/plugins/...
>>
>> config.ini should contain:
>> ### bundles to start
>> osgi.bundles=org.eclipse.equinox.common@2:start,
>> org.eclipse.update.configurator@start,
>> org.eclipse.equinox.http.servletbridge@start,
>> org.eclipse.equinox.http.registry@start
>> # update configurator will load all bundles present in the plugins
>> # folder of your installation
>> ### install area (replace with your install area path)
>> osgi.install.area=file:///yourapp
>> ### path to osgi runtime jar - replace path
>> osgi.framework=file:///yourapp/plugins/org.eclipse.osgi_3.2.1.R32x_..
>> ### no eclipse launch
>> eclipse.ignoreApp=true
>>
>> Start the app with
>> -classpath /<yourapp>/startup.jar -Dorg.osgi.service.http.port=$PORT
>> org.eclipse.core.launcher.Main
>>
>> See also: http://www.eclipse.org/equinox/server/http_in_equinox.php
>>
>> Cheers,
>>
>> Jochen
>>
>>
>> Andreas Rümpel wrote:
>>> Hi,
>>>
>>> I want to launch my RAP application from command line without using the
>>> Eclipse IDE. Certainly the Equinox launcher has to be used for that. I
>>> have my application plug-in exported as a jar file and the RAP target
>>> platform. Could somebody give me a short step-by-step guide, how to
>>> perform this launch from command line? Can I use my launch configuration
>>> file (the "OSGi Framework" or "RAP Application" launchers) somehow or do
>>> I have to configure independently somewhere?
>>>
>>> Thanks.
>>>
>>> Andi
Previous Topic:Help on Eclipse Help System
Next Topic:Switch for disabling widget pooling
Goto Forum:
  


Current Time: Thu Mar 28 21:32:06 GMT 2024

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

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

Back to the top