Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Webstart and RCP Eclipse 3.1
Webstart and RCP Eclipse 3.1 [message #437349] Wed, 28 September 2005 00:40 Go to next message
Ivan Bojer is currently offline Ivan BojerFriend
Messages: 28
Registered: July 2009
Junior Member
I have looked at Ed's demo, read all of Pascal's comments, looked at the latest eclipse help page, and searched the "whole Internet", but I have not been able to deploy RCP using webstart in 3.1

Was anyone able to do this?
Re: Webstart and RCP Eclipse 3.1 [message #437352 is a reply to message #437349] Wed, 28 September 2005 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefan.renz.web.de

Ivan B wrote:

> I have looked at Ed's demo, read all of Pascal's comments, looked at the
latest eclipse help page, and searched the "whole Internet", but I have not
been able to deploy RCP using webstart in 3.1

> Was anyone able to do this?


Hi Ivan,

I have deployed my RCP-Application successfully. Following is the
resources section of my jnlp-file. If you packed your plugin as a
jar-file, it should work the same way.

<resources>

<!-- the demanded jdk version -->
<j2se version="1.4*" max-heap-size="256000000"/> <!-- 1.4.1+ -->

<!-- contains eclipse webstart launcher -->
<jar href="webstartup.jar" main="true"/>

<!-- the application plug-in -->
<jar href="MyApplicationPlugin_1.0.0.jar" />

<!-- following the plugins of the eclipse framework -->
<jar href="org.eclipse.core.commands_3.1.0.jar" />
<jar href="org.eclipse.core.expressions_3.1.0.jar" />
<jar href="org.eclipse.core.runtime_3.1.0.jar" />
<jar href="org.eclipse.help_3.1.0.jar" />
<jar href="org.eclipse.jface_3.1.0.jar" />
<jar href="org.eclipse.osgi_3.1.0.jar" />
<jar href="org.eclipse.swt.win32_3.1.0.jar" />
<jar href="org.eclipse.swt_3.1.0.jar" />
<jar href="org.eclipse.ui.workbench_3.1.0.jar" />
<jar href="org.eclipse.ui_3.1.0.jar" />
<jar href="org.eclipse.update.configurator_3.1.0.jar" />
<!--jar href="org.eclipse.update.core.win32_3.1.0.jar" /-->
<jar href="org.eclipse.update.core_3.1.0.jar" />
<jar href="org.eclipse.core.variables_3.1.0.jar" />
<jar href="org.eclipse.ui.forms_3.1.0.jar" />


<!-- system properties -->
<property name="eclipse.application" value="MyPlugin.MyApp" />
<property name="eclipse.product" value="MyApp.product" />
<property name="eclipse.consoleLog" value="true" />


</resources>
Re: Webstart and RCP Eclipse 3.1 [message #437444 is a reply to message #437349] Wed, 28 September 2005 13:32 Go to previous messageGo to next message
Jorge Middleton is currently offline Jorge MiddletonFriend
Messages: 1
Registered: July 2009
Junior Member
try with this https://bugs.eclipse.org/bugs/show_bug.cgi?id=48416
download the attachment and follows the steps in note.txt file.
Try with this, the steps are not very clear but if you don't know something, tell me and we try together.

Jorge
Re: Webstart and RCP Eclipse 3.1 [message #437452 is a reply to message #437352] Wed, 28 September 2005 16:15 Go to previous messageGo to next message
Ivan Bojer is currently offline Ivan BojerFriend
Messages: 28
Registered: July 2009
Junior Member
Your attachment seems to be missing. I think that's a problem with board engine this site uses. Can you re-post?

------------
Code Snippets

If you wish to include code in your presentation, please wrap it inside
 
tags. This allows us to format and style it.
XML or HTML

If you are including XML or HTML in your posting, please wrap your text inside [/xml] tags. This will prevent this code from being rendered by the browser.
Re: Webstart and RCP Eclipse 3.1 [message #437453 is a reply to message #437444] Wed, 28 September 2005 16:15 Go to previous messageGo to next message
Ivan Bojer is currently offline Ivan BojerFriend
Messages: 28
Registered: July 2009
Junior Member
...will do.
Re: Webstart and RCP Eclipse 3.1 [message #437461 is a reply to message #437349] Wed, 28 September 2005 21:50 Go to previous messageGo to next message
Ivan Bojer is currently offline Ivan BojerFriend
Messages: 28
Registered: July 2009
Junior Member
I tried everything and it did not work. Than I switched to Windows and that worked. Apparently there is some BUG regarding Linux JWS deployments!?
Thank you for the link.

I have additional question though. I have another plugin that depends on some 3rd party jars. What is a proper way to package these jars? I tried to put them at the root level and they get jared, but my plugin still complains about not able to resolve them. Any ideas?
Re: Webstart and RCP Eclipse 3.1 [message #437464 is a reply to message #437461] Thu, 29 September 2005 07:18 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> I tried everything and it did not work. Than I switched to Windows and
> that worked. Apparently there is some BUG regarding Linux JWS
> deployments!?

which user are you in linux and which in windows?
if you're have administrative rights in wondows you may try to run your
app in linux as root and see if it helps -- if so you're trying to access
regions you are not permitted to.

> I have additional question though. I have another plugin that depends on
> some 3rd party jars. What is a proper way to package these jars? I tried
> to put them at the root level and they get jared, but my plugin still
> complains about not able to resolve them. Any ideas?

put your 3d-party-jars in plugins, too?
Re: Webstart and RCP Eclipse 3.1 [message #437517 is a reply to message #437464] Thu, 29 September 2005 13:32 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

arne anka wrote:
> Ivan B wrote:
>> I have additional question though. I have another plugin that depends
>> on some 3rd party jars. What is a proper way to package these jars? I
>> tried to put them at the root level and they get jared, but my plugin
>> still complains about not able to resolve them. Any ideas?
>
>
> put your 3d-party-jars in plugins, too?


And when you do put them in plugins, you might want to try the "creating
new project from jars" option. Then the plugins that they generate will
be a single jar file, which (at least I received the impression) was
necessary for JWS.

Later,
PW


Re: Webstart and RCP Eclipse 3.1 [message #437528 is a reply to message #437464] Thu, 29 September 2005 16:24 Go to previous messageGo to next message
Ivan Bojer is currently offline Ivan BojerFriend
Messages: 28
Registered: July 2009
Junior Member
> > I tried everything and it did not work. Than I
> switched to Windows and
> > that worked. Apparently there is some BUG regarding
> Linux JWS
> > deployments!?
>
> which user are you in linux and which in windows?
> if you're have administrative rights in wondows you
> may try to run your
> app in linux as root and see if it helps -- if so
> you're trying to access
> regions you are not permitted to.
>

Just to clarify, I can run my app within the Linux environment, but I can not export it for the jws deployment. I do not believe that user access perms. are the issue as I've deployed a number of JWS apps and they worked just fine within java sanbox (and I set security to all permissions).

> > I have additional question though. I have another
> plugin that depends on
> > some 3rd party jars. What is a proper way to
> package these jars? I tried
> > to put them at the root level and they get jared,
> but my plugin still
> > complains about not able to resolve them. Any
> ideas?
>
> put your 3d-party-jars in plugins, too?

Did that, and that seems to work. Does that mean that evey jar needs a separate plugin or I can accumulate all 3rd party jars in one plugin?
Re: Webstart and RCP Eclipse 3.1 [message #437671 is a reply to message #437528] Fri, 30 September 2005 20:45 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
Although you could combine several 3rd party libraries into one plug-in, the best practice is to keep them separate.
--Ed
Re: Webstart and RCP Eclipse 3.1 [message #437682 is a reply to message #437671] Sat, 01 October 2005 18:10 Go to previous messageGo to next message
David Scott is currently offline David ScottFriend
Messages: 19
Registered: July 2009
Junior Member
Ed Burnette wrote:
> Although you could combine several 3rd party libraries into one plug-in, the best practice is to keep them separate.
> --Ed

why is that a best practice exactly? i know it is "normal", but for an
normal size rcp app - wouldn't it be better/easier to bundle everything
into one plug-in.
Re: Webstart and RCP Eclipse 3.1 [message #437683 is a reply to message #437682] Sat, 01 October 2005 21:58 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
The rationale is that if you are developing a plugin that depends on (say) Xerces, and another plugin also depends on Xerces, then you only have one copy of Xerces loaded (onto disk/memory). If you bundle it inside your plugin, you load it twice, and increase disk/memory usage (the latter being more important).

Furthermore, if it's developed as a separate plugin, then if you want to ship a bugfix version (say, Xerces 2.7.1) then you don't have to re-bundle your plugin to take advantage of the new parser (and once installed, any other plugin that needs Xerces can also take advantage of it).

Lastly, this approach also allows 'deltas' to be shipped as fragments, so that you can ship the changes in 2.7.1 that are different from 2.7.0 instead of the whole lot again.

This also holds for the reverse direction; if you want to ship a new version of your app, you only need to provide updates for your app, not any of its dependent libraries. That'll make people updating your app from (say) an update site much faster, because they won't need to download the required libraries again.

Lastly, it's not even the case that for a 'normal' size app that it needs to be a single plugin. You can split out your UI and non-UI components, for example, to allow uses of your plugins to be used by other systems (or running on a headless Eclipse install, for example).
Re: Webstart and RCP Eclipse 3.1 [message #437698 is a reply to message #437683] Sun, 02 October 2005 22:35 Go to previous messageGo to next message
David Scott is currently offline David ScottFriend
Messages: 19
Registered: July 2009
Junior Member
ok, so i knew this - but, i am examining my own behavior with respect to
eclipse - the mother of all rcp apps - and i always,always download the
whole thing - and i would never expect to see a separate, say junit,
plugin upgrade for eclipse. how about you - do you download
fragments/plugins or do you go for the whole tarball as well? would you
look for or download a junit upgrade only?

Alex Blewitt wrote:
> The rationale is that if you are developing a plugin that depends on (say) Xerces, and another plugin also depends on Xerces, then you only have one copy of Xerces loaded (onto disk/memory). If you bundle it inside your plugin, you load it twice, and increase disk/memory usage (the latter being more important).
>
> Furthermore, if it's developed as a separate plugin, then if you want to ship a bugfix version (say, Xerces 2.7.1) then you don't have to re-bundle your plugin to take advantage of the new parser (and once installed, any other plugin that needs Xerces can also take advantage of it).
>
> Lastly, this approach also allows 'deltas' to be shipped as fragments, so that you can ship the changes in 2.7.1 that are different from 2.7.0 instead of the whole lot again.
>
> This also holds for the reverse direction; if you want to ship a new version of your app, you only need to provide updates for your app, not any of its dependent libraries. That'll make people updating your app from (say) an update site much faster, because they won't need to download the required libraries again.
>
> Lastly, it's not even the case that for a 'normal' size app that it needs to be a single plugin. You can split out your UI and non-UI components, for example, to allow uses of your plugins to be used by other systems (or running on a headless Eclipse install, for example).
Re: Webstart and RCP Eclipse 3.1 [message #437699 is a reply to message #437698] Mon, 03 October 2005 02:31 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
I recommend one jar per library for several reasons:

1. I don't want to have to rebundle the world just to change the release of some library I'm using. (this is my own updating, not the user's updating)

2. I can have multiple plug-ins depend on the same library plugin. Even if I don't want to do that right now it gives me flexibility in the future.

3. Unrelated things should not be bundled together, just as a general design pattern, if you can avoid it.

4. It makes it easier to flatten out and re-jar a library, or for that library to include Eclipse manifest info in the first place. Let me explain.

Eclipse plug-ins are better packaged as jars themselves and you can't have jars within jars without somebody doing an extra unpack/copy at run-time. So you have to unpack the jar, stick something in the MANIFEST.MF file to make it "Eclipse-aware", and then pack it back up. It would be impractical and error-prone to do that if multiple unrelated packages were combined.

In fact I've been pushing for people like Apache to make their jars "Eclipse-aware" to start with, so we could download jars from their site and use them unmodified.
Re: Webstart and RCP Eclipse 3.1 [message #437754 is a reply to message #437698] Tue, 04 October 2005 10:57 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
It doesn't matter so much if your only distribution mechanism is a single tarball, from a distribution perspective. However, if you're going to provide an update mechanism (and I strongly urge you to consider doing this if not using WebStart) then it makes a lot more sense having multiple plugins, because then you ship just the updated code.

In fact, there's nothing to stop you bundling the app with just a bare-bones installer and updater, and then when the user runs it for the first time run the updater to pull down the latest version.

Given that there's no benefit in putting them in a single Jar, and there are multiple benefits (that admitedly, you may not be using yet) in having seperate Jars, (and the fact that it would be a bitch to switch between the two) it makes sense to start off using the one that will give you potential benefits in the future.
Previous Topic:How do i open a new window with my custom Controls ?
Next Topic:how to remove the accelerators
Goto Forum:
  


Current Time: Sun Dec 08 16:30:36 GMT 2024

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

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

Back to the top