Home » Eclipse Projects » Rich Client Platform (RCP) » RCP and Java Webstart
RCP and Java Webstart [message #444726] |
Mon, 20 February 2006 06:20 |
Eclipse User |
|
|
|
Originally posted by: gvillot.free.fr
Hi All,
I've been trying to export my RCP application using the Java Webstart technology using Eclipse 3.1.2 and Java 1.506 under Linux, without any success.
I got several errors, some related to the plugins directory which is not valid, some related to the application id which hasn't been found, some related to plugins which are not resolved.
To do it, I followed the Eclipse help ( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm)
for multiple plugins RCP, by creating a Feature project to wrap all plugins (Eclipse core plugins + my plugins)...
I have attached all jnlp files + the log I've got from the cache.
At the moment, everything seems to be downloaded "correctly", all jars are present in the cache, but the application doesn't start...
|
|
| | |
Re: RCP and Java Webstart [message #444736 is a reply to message #444731] |
Mon, 20 February 2006 11:15 |
Eclipse User |
|
|
|
Originally posted by: gvillot.free.fr
Hi Vincent,
on the top of what Ricky described, you may need to add manually startup.jar in the root of your feature project, and sign it manually using jarsigner and the same keystore that you specified to sign your plugins.
Then add in your build.properties:
root=file:startup.jar
to have it exported
cheers,
georges
|
|
|
Re: RCP and Java Webstart [message #444737 is a reply to message #444736] |
Mon, 20 February 2006 11:39 |
Vincent WUHRLIN Messages: 19 Registered: July 2009 |
Junior Member |
|
|
ReHello everybody, i have followed your ideas and eclipse help to make a
webstart plugin. All are exported, and signed automatically with a new
feature-project for my plugin. I have testes on my local server, all
plugins are loaded (~ approximately 10Mb in total).
But the big problem now is that nothing appear on the screen. I have
activated the console on the java preferences, but the console appear and
disappear rapidly. I have finded the log file which is created for every
webstart execution, but all are empty.
I have tried to add a simple line in my application:
public Object run(Object args) throws Exception
{
System.out.println("APPLICATION OK !!!!!!!!!!");
System.exit(0);
...
}
In hope to see the output in the webstart console, but always nothing...
So, I think that the startup.jar don't launch application, and a problem
must exist at this level. But the startup is generated by the product
export, and when I launch the executable on windows (myapplication.exe
which launch next the startup.jar), i have no problem.
So, what have you made of different for have something on the screen? :)
Thank you very much
Vincent
|
|
| | | | | | | |
Re: RCP and Java Webstart [message #444765 is a reply to message #444726] |
Mon, 20 February 2006 16:10 |
Eclipse User |
|
|
|
Originally posted by: cfieber.gmail.com
After much head-bashing trying to get my Eclipse RCP application to work
using the documented Java WebStart stuff, I ended up writing an
alternative to WebStartMain that basically establishes and/or updates a
working area (similar to what you get when you do a product export) by
connecting to a product site, and downloading a specified set of
features from that site, then invoking the standard Main from the
startup jar.
I'll attempt to get approval to submit that code, but it was pretty
simple to write if not.
-Cameron
Georges wrote:
> Hi All,
>
> I've been trying to export my RCP application using the Java Webstart technology using Eclipse 3.1.2 and Java 1.506 under Linux, without any success.
>
> I got several errors, some related to the plugins directory which is not valid, some related to the application id which hasn't been found, some related to plugins which are not resolved.
>
> To do it, I followed the Eclipse help ( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm)
> for multiple plugins RCP, by creating a Feature project to wrap all plugins (Eclipse core plugins + my plugins)...
>
> I have attached all jnlp files + the log I've got from the cache.
>
> At the moment, everything seems to be downloaded "correctly", all jars are present in the cache, but the application doesn't start...
|
|
| |
Re: RCP and Java Webstart [message #444767 is a reply to message #444766] |
Mon, 20 February 2006 16:28 |
Eclipse User |
|
|
|
Originally posted by: cfieber.gmail.com
You first generate a feature project the same as you would for the
traditional WebStart deploy, but then generate an updatesite project for
that feature, build the updatesite, and publish that to the webserver.
The webstart application connects to the webserver, reads the site.xml
from the updatesite, and then, if necessary, downloads the features (and
their dependant features) from the webserver to the local pc, then runs
Main.
The actual classes launched by webstart are the eclipse startup jar +
the additional classes I wrote to do this download/update.
Vincent wrote:
>
> I am really interesting to have an example of that. But, just to know,
> the features which called the files are on local disk?
> I write this question because in my case, all files must are on a
> webserver.
> It is the main rule of my project: the persons dont want to install
> files manually on the harddisk. So, webstart is a solution.
> In your case, how that works?
>
> Sincerely,
> Vincent
>
>
|
|
|
Re: RCP and Java Webstart [message #444771 is a reply to message #444767] |
Mon, 20 February 2006 17:08 |
Vincent WUHRLIN Messages: 19 Registered: July 2009 |
Junior Member |
|
|
OK, I see the global idea. It's really interesting, can you post your
different classes after finishing? I think it's can be a good alternative
to webstart.
At present, i am really desesperate about webstart. I have resolved the
product id error, and once again, a new error arrives. The webstart can
execute now the code inside the Application run function, but can't create
the display.
This is the log :
------------------------------------------------------------ ---------------------
!SESSION 2006-02-20 17:57:58.500
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
!ENTRY org.eclipse.ui 4 4 2006-02-20 17:58:01.687
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 2006-02-20 17:58:01.687
!MESSAGE No instance data can be specified.
!STACK 0
java.lang.IllegalStateException: No instance data can be specified.
at
org.eclipse.core.internal.runtime.DataArea.assertLocationIni tialized(DataArea.java:41)
at
org.eclipse.core.internal.runtime.DataArea.getStateLocation( DataArea.java:79)
at
org.eclipse.core.internal.preferences.InstancePreferences.ge tBaseLocation(InstancePreferences.java:44)
at
org.eclipse.core.internal.preferences.InstancePreferences.in itializeChildren(InstancePreferences.java:199)
at
org.eclipse.core.internal.preferences.InstancePreferences.<init >(InstancePreferences.java:59)
at
org.eclipse.core.internal.preferences.InstancePreferences.in ternalCreate(InstancePreferences.java:209)
at
org.eclipse.core.internal.preferences.EclipsePreferences.cre ate(EclipsePreferences.java:289)
at
org.eclipse.core.internal.preferences.EclipsePreferences.cre ate(EclipsePreferences.java:277)
at
org.eclipse.core.internal.preferences.PreferencesService.cre ateNode(PreferencesService.java:405)
at
org.eclipse.core.internal.preferences.RootPreferences.getChi ld(RootPreferences.java:63)
at
org.eclipse.core.internal.preferences.RootPreferences.getNod e(RootPreferences.java:96)
at
org.eclipse.core.internal.preferences.RootPreferences.node(R ootPreferences.java:85)
at
org.eclipse.ui.internal.JFaceUtil.initializeJFacePreferences (JFaceUtil.java:69)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:944)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1695)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:397)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at rcpmailwebstart.Application.run(Application.java:20)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:109)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:59)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------ ------------------
The line 20 of Application.java :
int returnCode = PlatformUI.createAndRunWorkbench(display, new
ApplicationWorkbenchAdvisor());
Webstart is really a assault course... (i don't know if my french
expression is good converted)
If somebody have an idea...
Thank you very much,
Vincent
|
|
| | |
RCP Java Webstart 3.1 - 3.2, What is the difference? [message #444802 is a reply to message #444726] |
Tue, 21 February 2006 10:47 |
Vincent WUHRLIN Messages: 19 Registered: July 2009 |
Junior Member |
|
|
Hello, i have made the exact same manipulation on my eclipse 3.1 that i
have realized on eclipse 3.2 yesterday. So, i have created a RcpMail
Plugin template,
created an feature project, exported to webstart...
All works fine ! My application is opened ad i can use as a exported
product.
The problem now is that my application was developped with gef on eclipse
3.2,
and recreate all the project in 3.1 will be a lost of time.
So, the error is of the Eclipse side, i Think it's equinox because i have
added these lines in 3.2 jnlp :
<property name="osgi.bundles" value="org.eclipse.equinox.common@2:start,
org.eclipse.core.jobs@2:start,
org.eclipse.core.runtime.compatibility.registry,
org.eclipse.equinox.registry@2:start, org.eclipse.equinox.preferences,
org.eclipse.core.contenttype, org.eclipse.core.runtime@2:start"/>
I will try the eclipse 3.2 M5, at present i have only the M4.
If someone have an idea and experience with eclipse 3.2, please help me :)
Thank you very much.
Vincent
|
|
| | | | | |
Goto Forum:
Current Time: Fri Jan 03 04:02:39 GMT 2025
Powered by FUDForum. Page generated in 0.06045 seconds
|