Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipsr 3.2 RCP and Java Web Start
Eclipsr 3.2 RCP and Java Web Start [message #448828] Wed, 03 May 2006 22:44 Go to next message
Eclipse UserFriend
Hi

I am wonhdering if anyone has tried using the Eclipse 3.2 export wizard to deploy an RCP to java web start and if you can answer a few questions

I have been trying to do this by creating a sample RCP and then collowing the older docs :

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm

For example, if I create a newRCP (Hello World) and try to export it, the wizard does not export any of the required jars except the newRCP plugin jar. That is, it does not export org.eclipse.core.runtime or org.eclipse.core.ui and so on.

I am hoping that someone can explain to me the default behavior of the export wizard and perhaps can lend a hand explaining how JWS and Eclispe RCPs play together

Thanks
Charles
Re: Eclipsr 3.2 RCP and Java Web Start [message #448836 is a reply to message #448828] Thu, 04 May 2006 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Charles,

If is your pretend export your product, you need to crate a product
configuration, that is where you brand your rcp product ( custumize icon
from window the louncher set up plugins that you be exported) and stuffs, if
you check out from cvs the broser example you can see it working. When you
export the product all the run time to your application will be exported.
You need your product configuration anyway to use the update manager and web
start, couse you need to set up your product based on features.



"Charles Martin" <charlesmartin14@hotmail.com> wrote in message
news:24240637.1146710715164.JavaMail.root@cp1.javalobby.org...
> Hi
>
> I am wonhdering if anyone has tried using the Eclipse 3.2 export wizard
to deploy an RCP to java web start and if you can answer a few questions
>
> I have been trying to do this by creating a sample RCP and then
collowing the older docs :
>
>
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv
/guide/java_web_start.htm
>
> For example, if I create a newRCP (Hello World) and try to export it,
the wizard does not export any of the required jars except the newRCP plugin
jar. That is, it does not export org.eclipse.core.runtime or
org.eclipse.core.ui and so on.
>
> I am hoping that someone can explain to me the default behavior of the
export wizard and perhaps can lend a hand explaining how JWS and Eclispe
RCPs play together
>
> Thanks
> Charles
Re: Eclipsr 3.2 RCP and Java Web Start [message #448839 is a reply to message #448836] Thu, 04 May 2006 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Thanks
I tried this also but still what I found is that the Eclipse export wizard does not export the core jars that the plugin depends on

?
Re: Eclipsr 3.2 RCP and Java Web Start [message #448843 is a reply to message #448839] Thu, 04 May 2006 22:06 Go to previous messageGo to next message
Eclipse UserFriend
I'll answer this myself

Turns out in 3.2, you can create a feature (which I though were being replaced with products in 3.x), and you have to include the org.eclipse.rcp... jar as a feature

This is not totally obvious and there seems to be no mechanism to automatically detect this dependency

Seems to work fine if you do this
Eclipsr 3.1 RCP and Java Web Start [message #448845 is a reply to message #448828] Fri, 05 May 2006 00:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: msribrah.cisco.com

Hi Friends,

I am using eclipse RCP to launch my product through Java webstart to
install on client machine.
I followed the following procedure.
Deploying eclipse based application with Java Web Start(see Help inside
Eclipse)
Now the product is launching fine after doing some manual changes. My
product need some existing data files(mibs, Template....)
I set user workspace like below by setting the property in JNLP

<property
name="osgi.instance.area"
value="@user.home/Application Data/mibfix"/>
<property
name="osgi.configuration.area"
value="@user.home/Application Data/mibfix"/>

Now it's searching the required data in this location user.home/Application
Data/mibfix
But all my data are inside the user.home/Application
Data/mibfix/org.eclipse.osgi/bundles/15/1/.cp
To solve this issue, I changed the JNLP property tag.



<property
name="osgi.instance.area"
value="@user.home/Application
Data/mibfix/org.eclipse.osgi/bundles/15/1/.cp"/>


I deployed it on our server. On downloading in diffrrent systems my data
files are in diffrent No folder (like 15 but not 15). But it's searching
for the data files inside the "user.home/Application
Data/mibfix/org.eclipse.osgi/bundles/15/1/.cp."

If any one can let me know how to get control l over
org.eclipse.osgi/bundles/No Folder creation.

For detail u can also see inside ur eclipse folder
eclipse\configuration\org.eclipse.osgi\bundles


I am desoerately looking for ur reply

Thanks,
Mukesh
Re: Eclipsr 3.2 RCP and Java Web Start [message #448854 is a reply to message #448843] Fri, 05 May 2006 08:01 Go to previous messageGo to next message
Eclipse UserFriend
When you setup that your product is based on features insteand of products,
you need to create it and add all plugins that you add in rcps that you add
in target. For example if you are as target rcp 3.2, the necessary plugins
are there. But let suppose that you you use helps an update manager, when
you define your feature
the plugins that you added to target including your rcp application.
If you want to see what plugins you be exported then use the pop up menu in
plugin.xml set pde tolls and generate ant built, this is the build that
eclipse uses behid the scense to export you plugins, there you can see what
will be done when you export it.

"Charles Martin" <charlesmartin14@hotmail.com> wrote in message
news:31158636.1146794803581.JavaMail.root@cp1.javalobby.org...
> I'll answer this myself
>
> Turns out in 3.2, you can create a feature (which I though were being
replaced with products in 3.x), and you have to include the
org.eclipse.rcp... jar as a feature
>
> This is not totally obvious and there seems to be no mechanism to
automatically detect this dependency
>
> Seems to work fine if you do this
Re: Eclipsr 3.2 RCP and Java Web Start [message #448859 is a reply to message #448854] Fri, 05 May 2006 12:42 Go to previous messageGo to next message
Eclipse UserFriend
(1) What do you mean by "you are as target rcp 3.2 ?"

(2) I tried creating the build.xml as you suggested, and I found that this did not list the required feature that I need to include the the feature project?

(3) It is my understanding that the eclipse help system will not function in an RCP deployed using java web start. Is this correct?

More precisely...
To deploy a simple rcp (like the example mail RCP plugin, you have to create a feature. The feature should be configured to use the mail RCP as a plugin, and it should also be configured to include org.eclipse.rcp as an "included feature". Once this is set up, you can then use the Eclipse GUI to "compute the plugins that will need to be present before installing this feature"

I guess what I was expecting is that the Eclipse GUI would automatically detect the "included features" in the same way it can "compute" the required dependencies. For example, the feature.xml contains an <includes> tag to specify the included feature:

<includes
id="org.eclipse.rcp"
version="0.0.0"/>

and a <requires> tag to specify the dependent plugins

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
</requires>







When you setup that your product is based on features
> insteand of products,
> you need to create it and add all plugins that you
> add in rcps that you add
> in target. For example if you are as target rcp 3.2,
> the necessary plugins
> are there. But let suppose that you you use helps an
> update manager, when
> you define your feature
> the plugins that you added to target including your
> rcp application.
> If you want to see what plugins you be exported then
> use the pop up menu in
> plugin.xml set pde tolls and generate ant built, this
> is the build that
> eclipse uses behid the scense to export you plugins,
> there you can see what
> will be done when you export it.
>
> "Charles Martin" <charlesmartin14@hotmail.com> wrote
> in message
> news:31158636.1146794803581.JavaMail.root@cp1.javalobb
> y.org...
> > I'll answer this myself
> >
> > Turns out in 3.2, you can create a feature (which I
> though were being
> replaced with products in 3.x), and you have to
> include the
> org.eclipse.rcp... jar as a feature
> >
> > This is not totally obvious and there seems to be
> no mechanism to
> automatically detect this dependency
> >
> > Seems to work fine if you do this
>
>
Re: Eclipsr 3.2 RCP and Java Web Start [message #448860 is a reply to message #448859] Fri, 05 May 2006 12:45 Go to previous messageGo to next message
Eclipse UserFriend
Here's the feature.xml tag for the plugins:

import plugin="org.eclipse.ui"/>
import plugin="org.eclipse.core.runtime
Re: Eclipsr 3.2 RCP and Java Web Start [message #448861 is a reply to message #448860] Fri, 05 May 2006 12:45 Go to previous messageGo to next message
Eclipse UserFriend
------=_Part_1124_20165350.1146847634902
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Let me just attach the feature.xml sincce I can not seem to get it into the message box here
------=_Part_1124_20165350.1146847634902
Content-Type: text/xml; name=feature.xml; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=feature.xml

<?xml version="1.0" encoding="UTF-8"?>
<feature
id="mail_Feat"
label="Mail_Feat Feature"
version="1.0.0">

<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>

<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>

<license url="http://www.example.com/license">
[Enter License Description here.]
</license>

<includes
id="org.eclipse.rcp"
version="0.0.0"/>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
</requires>

<plugin
id="mailRCP"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>

------=_Part_1124_20165350.1146847634902--
Re: Eclipsr 3.2 RCP and Java Web Start [message #448864 is a reply to message #448859] Fri, 05 May 2006 19:20 Go to previous messageGo to next message
Eclipse UserFriend
"Charles Martin" <charlesmartin14@hotmail.com> wrote in message
news:24962586.1146847375954.JavaMail.root@cp1.javalobby.org...
> (1) What do you mean by "you are as target rcp 3.2 ?"
>
Let suposse that youre developing an RCP just from Windows operational
System:

You culd donload the RCP runtime binary to windows :
http://download.eclipse.org/eclipse/downloads/drops/S-3.2RC2 -200604281315/do
wnload.php?dropFile=eclipse-RCP-3.2RC2-win32.zip, these is the core runtime
system that you will nedd to any RCP application.
After that you culd put it in c:\eclipsercp for example:
In eclipe ope Windows-> Preference Plug-in development-> target plataform,
this is where you setup wat will be used by eclipse as target when it starts
an rcp application inside eclipse, if you use c:\eclipsercp\eclipse it will
use the runtime with plugins that are there, and this plugins doesn't need
to be referenced in you features.
Than when you start your rcp Project the runtime will be like this runtime
plus your plugins. But if you need some extra functionality, you need to put
the plugins that you need in c:\eclipsercp\eclipse\plugins and reload the
targed.

> (2) I tried creating the build.xml as you suggested, and I found that
this did not list the required feature that I need to include the the
feature project?
In your features you need to setup the extra plugins (using dependencies in
feature editors)and the build shows in
<path id="@dot.classpath"> element the plugins thaw will be exported

>
> (3) It is my understanding that the eclipse help system will not function
in an RCP deployed using java web start. Is this correct?
Well the Help can not be deployed using web start but can be deployed latter
using update manager.
I dont know why some plugins are not packeged in jar files, and if its the
only problem with help system, but you can only deploy signed jars in
web-start.
>
> More precisely...
> To deploy a simple rcp (like the example mail RCP plugin, you have to
create a feature. The feature should be configured to use the mail RCP as a
plugin, and it should also be configured to include org.eclipse.rcp as an
"included feature". Once this is set up, you can then use the Eclipse GUI
to "compute the plugins that will need to be present before installing this
feature"
>
> I guess what I was expecting is that the Eclipse GUI would automatically
detect the "included features" in the same way it can "compute" the required
dependencies. For example, the feature.xml contains an <includes> tag to
specify the included feature:
>
> <includes
> id="org.eclipse.rcp"
> version="0.0.0"/>
>
> and a <requires> tag to specify the dependent plugins
>
> <requires>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.core.runtime"/>
> </requires>
>
>
>
>
>
>
>
> When you setup that your product is based on features
> > insteand of products,
> > you need to create it and add all plugins that you
> > add in rcps that you add
> > in target. For example if you are as target rcp 3.2,
> > the necessary plugins
> > are there. But let suppose that you you use helps an
> > update manager, when
> > you define your feature
> > the plugins that you added to target including your
> > rcp application.
> > If you want to see what plugins you be exported then
> > use the pop up menu in
> > plugin.xml set pde tolls and generate ant built, this
> > is the build that
> > eclipse uses behid the scense to export you plugins,
> > there you can see what
> > will be done when you export it.
> >
> > "Charles Martin" <charlesmartin14@hotmail.com> wrote
> > in message
> > news:31158636.1146794803581.JavaMail.root@cp1.javalobb
> > y.org...
> > > I'll answer this myself
> > >
> > > Turns out in 3.2, you can create a feature (which I
> > though were being
> > replaced with products in 3.x), and you have to
> > include the
> > org.eclipse.rcp... jar as a feature
> > >
> > > This is not totally obvious and there seems to be
> > no mechanism to
> > automatically detect this dependency
> > >
> > > Seems to work fine if you do this
> >
> >
Re: Eclipsr 3.2 RCP and Java Web Start [message #449036 is a reply to message #448864] Tue, 09 May 2006 03:11 Go to previous messageGo to next message
Eclipse UserFriend
>
> "Charles Martin" <charlesmartin14@hotmail.com> wrote
> in message
> news:24962586.1146847375954.JavaMail.root@cp1.javalobb
> y.org...
> > (1) What do you mean by "you are as target rcp 3.2
> ?"
> >
> Let suposse that youre developing an RCP just from
> Windows operational
> System:
>
> You culd donload the RCP runtime binary to windows :
> http://download.eclipse.org/eclipse/downloads/drops/S-
> 3.2RC2-200604281315/do
> wnload.php?dropFile=eclipse-RCP-3.2RC2-win32.zip,
> these is the core runtime
> system that you will nedd to any RCP application.
> After that you culd put it in c:\eclipsercp for
> example:
> n eclipe ope Windows-> Preference Plug-in
> development-> target plataform,
> this is where you setup wat will be used by eclipse
> as target when it starts
> an rcp application inside eclipse, if you use
> c:\eclipsercp\eclipse it will
> use the runtime with plugins that are there, and this
> plugins doesn't need
> to be referenced in you features.
> Than when you start your rcp Project the runtime will
> be like this runtime
> plus your plugins. But if you need some extra
> functionality, you need to put
> the plugins that you need in
> c:\eclipsercp\eclipse\plugins and reload the
> arged.
>
> > (2) I tried creating the build.xml as you
> suggested, and I found that
> this did not list the required feature that I need to
> include the the
> feature project?
> In your features you need to setup the extra plugins
> (using dependencies in
> feature editors)and the build shows in
> <path id="@dot.classpath"> element the plugins thaw
> will be exported
>
> >
> > (3) It is my understanding that the eclipse help
> system will not function
> in an RCP deployed using java web start. Is this
> correct?
> Well the Help can not be deployed using web start but
> can be deployed latter
> using update manager.
> I dont know why some plugins are not packeged in jar
> files, and if its the
> only problem with help system, but you can only
> deploy signed jars in
> web-start.
> >
> > More precisely...
> > To deploy a simple rcp (like the example mail RCP
> plugin, you have to
> create a feature. The feature should be configured
> to use the mail RCP as a
> plugin, and it should also be configured to include
> org.eclipse.rcp as an
> "included feature". Once this is set up, you can
> then use the Eclipse GUI
> to "compute the plugins that will need to be present
> before installing this
> feature"
> >
> > I guess what I was expecting is that the Eclipse
> GUI would automatically
> detect the "included features" in the same way it can
> "compute" the required
> dependencies. For example, the feature.xml contains
> an <includes> tag to
> specify the included feature:
> >
> > <includes
> > id="org.eclipse.rcp"
> > version="0.0.0"/>
> >
> > and a <requires> tag to specify the dependent
> plugins
> >
> > <requires>
> > <import plugin="org.eclipse.ui"/>
> > <import plugin="org.eclipse.core.runtime"/>
> > </requires>
> >
> >
> >
> >
> >
> >
> >
> > When you setup that your product is based on
> features
> > > insteand of products,
> > > you need to create it and add all plugins that
> you
> > add in rcps that you add
> > in target. For example if you are as target rcp
> 3.2,
> > the necessary plugins
> > are there. But let suppose that you you use helps
> an
> > update manager, when
> > you define your feature
> > the plugins that you added to target including
> your
> > rcp application.
> > If you want to see what plugins you be exported
> then
> > use the pop up menu in
> > plugin.xml set pde tolls and generate ant built,
> this
> > is the build that
> > eclipse uses behid the scense to export you
> plugins,
> > there you can see what
> > will be done when you export it.
> >
> > "Charles Martin" <charlesmartin14@hotmail.com>
> wrote
> > in message
> >
> news:31158636.1146794803581.JavaMail.root@cp1.javalob
>
> > > y.org...
> > > > I'll answer this myself
> > > >
> > > > Turns out in 3.2, you can create a feature
> (which I
> > > though were being
> > > replaced with products in 3.x), and you have to
> > > include the
> > > org.eclipse.rcp... jar as a feature
> > > >
> > > > This is not totally obvious and there seems to
> be
> > > no mechanism to
> > > automatically detect this dependency
> > > >
> > > > Seems to work fine if you do this
> > >
> > >
>
>
>

Thanks for the clarification because thisis an interesting approach

For deploying my Eclipse RCP by Java Web Start it is not an option to download the RCP runtime binary first
Eclipse 3.1 RCP and Java Web Start [message #449580 is a reply to message #448839] Tue, 16 May 2006 06:22 Go to previous message
Eclipse UserFriend
Originally posted by: msribrah.cisco.com

Hi Group,
I am so much tried to find out this solution.
1. How Eclipse creating No Folder( Please See in ur Local system-
eclipse\configuration\org.eclipse.osgi\bundles)

2. My product Launching Fine using RCP and Java web start
But all Required data Temlate( Contain all xml file ) it's need run
time.
all my data java webstart save on bundel No folder directory not my
required workspace. Now i am doing manually copy Temlate to workspace .


Please help me, i will be highly obliged for ur kind work.

Thanks
Mukesh
Previous Topic:Error exporting product for multiple platforms
Next Topic:Disabling popup menu in perspective bar
Goto Forum:
  


Current Time: Sat Aug 30 09:32:08 EDT 2025

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

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

Back to the top