www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: hytparadisee on May 25, 2007, 02:43:54 pm

Title: Need help to make jnlp and socket work together
Post by: hytparadisee on May 25, 2007, 02:43:54 pm
Simply put, how could I jnlp a game which opens tcp/udp sockets? I read from other sites that the application must be signed. But i am confused. My game contains other third party jars, do I have to sign them also? Or i only need to sign the jar in where the Main class resides.

I tried all kinds of methods but my sockets do not open at all, nor there are any warnings/errors (there are security warning dialogs to prompt you whether to trust the source, if you click yes, still nothing happens)

So Egon, does your "advanced example" in the "news" section contains socket level program code? If yes, how would you jnlp such application? If others have some experience, may I know what I am missing here?

Btw, i jnlped my application using the netbeans plugin for web start.

Edit: Got an AccessControlException, i guess something needs to be configured to bypass it. Anyone can help?
Title: Re: Need help to make jnlp and socket work together
Post by: EgonOlsen on May 25, 2007, 03:29:37 pm
The jnlp has to give all permissions by adding

Code: [Select]

<security>
       <all-permissions/>
</security>

All jars have to be signed to do this (not neccessarly by using the same key, but you'll get multiple security requesters if you don't).