Need help to make jnlp and socket work together

Started by hytparadisee, May 25, 2007, 02:43:54 PM

Previous topic - Next topic

hytparadisee

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?
Today I finally found a problem to my soluuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuution

EgonOlsen

The jnlp has to give all permissions by adding


<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).