By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

java.policy file issue

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

Thanks in advance
Noopur
Apr 16 '08 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 392
Can anybody please explain me what exactly happens when i add the line
permission java.net.SocketPermission "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.html#SocketPermission
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/rzahajgssjavapoly.htm

The policy string is pretty straight forward. It is allowing a listener to be accessed on port 1024 on the localhost.
Apr 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.