java.policy file issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noopurtiwari
    New Member
    • Aug 2007
    • 11

    #1

    java.policy file issue

    Can anybody please explain me what exactly happens when i add the line
    permission java.net.Socket Permission "localhost: 1024-","listen"; in the java.policy file of my jre installation.

    Thanks in advance
    Noopur
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Originally posted by noopurtiwari
    Can anybody please explain me what exactly happens when i add the line
    permission java.net.Socket Permission "localhost: 1024-","listen"; in the java.policy file of my jre installation.

    Thanks in advance
    Noopur
    Hi, if you are new to using forums they are generally setup to provide help for speicic questions/problems that users can not resolve on their own. It is gernerally expected that a person has made a resonable effort to resolve the problem/question on their own before posting. So posts like this, where it seems clear no effort was made before hand, are not going to get many responses.

    The documentation explains what these options do and Google and provide a wealth of examples, but you have to acutally look.
    http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.htm l#SocketPermiss ion
    http://publib.boulder. ibm.com/infocenter/iseries/v5r4/index.jsp?topic =/rzaha/rzahajgssjavapo ly.htm

    The policy string is pretty straight forward. It is allowing a listener to be accessed on port 1024 on the localhost.

    Comment

    Working...