473,799 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.policy file issue

11 New Member
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
Apr 16 '08 #1
1 2010
pronerd
392 Recognized Expert Contributor
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.
Apr 17 '08 #2

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

Similar topics

2
6251
by: Jan Meyer | last post by:
Where (aka what directory) do you put a java.policy file on a website for a particular applet??? There are presently no java.policy files on the web server. tia
73
8083
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities as a standard portable part of the core language, the LISP package, and the java.lang package, respectively. Both have big integers, although only LISP has rationals as far as I can tell. Because CL supports keyword arguments, it has a wider range...
4
5430
by: Lorenzo | last post by:
hi you all, first of all apologies for having cross-posted this message but really i did not know where to post it. please let me know what ng you consider the most suitable for the described issue. i wrote a program made by a client and a server that communicate via RMI premise 1) everything has been developed and executed on WinXP Professional and the following jre
0
275
by: Doug | last post by:
Hi, We are having an issue with policy files and the GAC. We have built a process where it will take a policy file dll and install it into the GAC. But a couple of things are occurring. One - it seems like that if someone is referencing an older version of that policy file that is in the gac (thus placing a lock on it we think), we can't get the new version installed into the GAC. Is there a way to get around this problem?
1
9657
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
2
2181
by: jtyner | last post by:
I am trying to get QFE (Quick Fix Engineering) working with an assembly installed in the GAC. I have two books that claim if two different version of the assembly are installed in the GAC -AND- they vary only by revision number, then the default policy is to load the higher number version. I am not able to reproduce this behavior in practice. My test case is simple. I wrote a class with AssemblyVersion 1.0.0.1. Installed into GAC. ...
458
21517
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they write and the conversations they have --- Occam's Razor points to this explanation. For example,...
15
2188
dmjpro
by: dmjpro | last post by:
I want to permit the java application only to read any local file but i don't want any application to update a local file. Is this related to java.policy? Please suggest ....!
3
3987
by: poopsy | last post by:
hello all, im trying out examples for java rmi but am having a problem.. the skeleton is not being generated, only the stub is generated. i have an example with the following classes: Account.java( which is the interface definition) AccountImpl.java (contains implementation for the remote interface) AccountServer.java AccountClient.java i have already set my classpath, etc.. to compile i did the following:
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.