[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-dev] WebStart
|
>>Is it possible to deploy a RCP application through Java WebStart?
I've tried but I did not make it happen.
One limitation of JWS is that everything has to be delivered in JARs and all
resources must be loaded from that JAR via
classloader.
http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/development.html#retrieving
I tried a "Mega"-JAR (included all plugins) but it did not work because of
classloader problems.
What does work nicely is writing SWT/JFace code (i.e. no plug-ins/RCP) and
delivering it through JWS.
Here are some templates (worked w/ 3.0 M2, i. e. before OSGi runtime):
@@ swt_win32.jnlp @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/jfaceswt"
href="swt_win32.jnlp">
<information>
<title>SWT Win32 Libraries</title>
<homepage href="http://www.eclipse.org/swt"/>
<description>SWT Win32 Libraries</description>
<offline-allowed/>
<vendor>Sebastian Davids</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources os="Windows" arch="x86">
<jar href="ws/win32/swt.jar"/>
<nativelib href="os/win32/x86/swtNativeLib.jar"/>
</resources>
<component-desc/>
</jnlp>
@@ jface.jnlp @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/jfaceswt"
href="jface.jnlp">
<information>
<title>JFace/Runtime Libraries</title>
<homepage href="http://www.eclipse.org/platform"/>
<description>JFace Libraries</description>
<offline-allowed/>
<vendor>Sebastian Davids</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="jface.jar"/>
<jar href="runtime.jar"/>
<jar href="boot.jar"/>
</resources>
<component-desc/>
</jnlp>
@@ myapp.jnlp @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/app"
href="myapplication.jnlp">
<information>
<title>My App</title>
<vendor>Sebastian Davids</vendor>
<homepage href="http://localhost:8080"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="myapp.jar"/>
<extension name="swt_win" href="jfaceswt/swt_win32.jnlp"/>
<extension name="jface" href="jfaceswt/jface.jnlp"/>
</resources>
<application-desc main-class="my.Application"/>
</jnlp>
@@@@
Sebastian
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz