World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-19-2007, 01:53 AM   #1
rogene
Scientist and Entrepreneur
 
Join Date: May 2007
Location: Washington State, USA
Posts: 75
rogene is on a distinguished road
Default Signing jars on japplets

Hi there,

Could someone give me the simple low-down on how jars need to be signed/security managed etc to run an applet?

I modified the worldwind basic demo code into a JApplet, but obtain runtime errors. From earlier posts I gather that I need to package my applet as a jar and sign the jar.

Despite a decade of experience with java, this is my first time working with security on jars.

Thanks!
rogene is offline   Reply With Quote
Old 07-19-2007, 01:56 AM   #2
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 407
Chade is an unknown quantity at this point
Default

Tried the Java forums yet (slow though they are)?
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade is offline   Reply With Quote
Old 07-19-2007, 02:01 AM   #3
rogene
Scientist and Entrepreneur
 
Join Date: May 2007
Location: Washington State, USA
Posts: 75
rogene is on a distinguished road
Default Thanks!

Thank you - this would be a much more appropriate place to ask my questions. Cheers!
rogene is offline   Reply With Quote
Old 07-19-2007, 02:23 PM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

There are many pages out there discribing the process. A lot are 'old' but are still valid.
It boils down to creating a certificate with keytool once, and signing your jar with it, using jarsigner, each time you rebuild your archive.

http://java.sun.com/j2se/1.4.2/docs/...a_signing.html
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 07-23-2007, 01:25 AM   #5
rogene
Scientist and Entrepreneur
 
Join Date: May 2007
Location: Washington State, USA
Posts: 75
rogene is on a distinguished road
Default

The procedure seems straightforward enough, but I am left with the question as to why it is required. Would it be correct to assume that anytime an applet imports classes from a signed jar, that it must itself be signed? Thanks!
rogene is offline   Reply With Quote
Old 07-23-2007, 07:51 AM   #6
pred
Member
 
Join Date: May 2007
Posts: 57
pred is on a distinguished road
Default

It must because your main applet launch code such as preparing client DataFileCache ( write access on client required), calling remote URL ( url access on port 80 required ) and I trust that's all. Furthermore, JOGL need to be signed to install ( write acess on client required ) natives drivers, but you can still use JNLP launcher.

Don't forget, Java doesn't transmit explicitely rights access to non initial threads son ( all thread created after applet init ), you need to give them all permission separately.
__________________
-Stephane Maldini- Thales Alenia Space, GMES program, Toulouse, France-
pred is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:05 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.