Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Running SWT in WebStart environment

I believe since there are native libraries in the .jar you need to add <nativelib href= to your resources tag 

<resources>
<nativelib href="org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar"/>
<jar href="org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar"/>
</resources>


On Thu, 2007-12-27 at 10:13 -0800, Kirill Grouchnikov wrote:
> I'm using org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar from Eclipse
> 3.3.0.
> 
> It is already signed (valid until 2009), so i had to split my JNLP
> file in two parts (since all jars in a JNLP file have to be signed by
> the same certificate).
> 
> JNLP of SWT jar is:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
>    <information>
>       <title>Activation</title>
>       <vendor>Eclipse Foundation, Inc.</vendor>
>       <offline-allowed/>
>    </information>
>   
>  <offline-allowed/>
>    <resources>
>       <jar href="org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar"/>
>    </resources>
>    <component-desc/>
> </jnlp>
> JNLP of the main application:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
>  href="testBramble.jnlp">
> <information>
>   <title>Native text rendering under Substance</title>
>   <vendor>Kirill Grouchnikov</vendor>
>   <description>Native text rendering under Substance</description> 
>   <description kind="short">Native text rendering under Substance</description> 
>   <offline-allowed/> 
> </information>
> <offline-allowed/>
> <security>
>  
>  <all-permissions/>
> </security>
> <resources>
>   <j2se version="1.5+" />
>   <jar href="substance-tst.jar"/>
>   <jar href="substance.jar"/>
>   <jar href="forms-1.1.0.jar"/>
>   <jar href="swingx.jar"/>
>   <jar href="substance-swingx.jar"/>
>   <jar href="substance-bramble.jar"/>
>   <extension name="eclipse" href="eclipse.jnlp"/>
> </resources>
> <application-desc main-class="test.Check" />
> </jnlp>
> Perhaps the eclipse.jnlp should have all-permissions added as well?
> 
> Thanks
> Kirill
> 
> ----- Original Message ----
> From: Dave Smith <dave.smith@xxxxxxxxxxx>
> To: Eclipse Platform SWT component developers list.
> <platform-swt-dev@xxxxxxxxxxx>
> Sent: Thursday, December 27, 2007 10:08:40 AM
> Subject: Re: [platform-swt-dev] Running SWT in WebStart environment
> 
> We have been using Webstart and SWT since 2.x at it works fine. SWT
> version is a constant in OS.java not in the environment. What version
> of
> SWT are you using and what does your jnlp file look like? Are you
> singing an SWT.jar that has not been singed by eclipse? 
> On Thu, 2007-12-27 at 09:55 -0800, Kirill Grouchnikov wrote:
> > Hi,
> > 
> > I'm using SWT to provide native text rendering for Swing
> applications
> > [1], and i'm having some troubles running it in a signed WebStart
> > application [2]. It looks like SWT tries to access "swt.version"
> > system property and fails with "access denied". I've searched the
> > forums and mailing lists and the only suggestion i could find was to
> > use System.setSecurityManager(null), which sounds like an overkill. 
> > 
> > Is there a workaround for signed WebStart apps that allows using
> SWT?
> > 
> > Thanks
> > Kirill
> > 
> > [1] http://www.pushing-pixels.org/?p=203
> > [2] https://substance-bramble.dev.java.net/webstart/testBramble.jnlp
> > 
> > 
> > 
> >
> ______________________________________________________________________
> > Looking for last minute shopping deals? Find them fast with Yahoo!
> > Search.
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> 
> 
> 
> 
> ______________________________________________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
> it now.
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top