Author Topic: Need help to make jnlp and socket work together  (Read 3448 times)

Offline hytparadisee

  • int
  • **
  • Posts: 86
    • View Profile
    • http://peterhi.com
Need help to make jnlp and socket work together
« 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?
« Last Edit: May 25, 2007, 02:47:08 pm by hytparadisee »
Today I finally found a problem to my soluuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuution

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Need help to make jnlp and socket work together
« Reply #1 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).