Can java source file automatically read policy file?

Hello, all.

Now I am able to run my application in this way

java -Djava.security.policy=server.policy myRMIserver

But I hate this, I just wonder if the source file of myRMIserver.java can read the policy file all by itself, so that I can run my application in this way

java myRMIserver

Is it possible to do this?

Yet another question.

I can run my application on my own machine (Ubuntu Linux), but when I tried to do that on a server machine (Red Hat Linux), I can not bind my service to the socket. The operating system complains that

Access denied,

Naming.rebind(url, service);

I just wonder if there is more things to do or my account simply do not have enough previlidge on the server ...

[760 byte] By [loudkinga] at [2007-11-27 1:49:46]
# 1
The operating system doesn't print that message and neither does any part of Java that I know of. What exception did you actually get?
ejpa at 2007-7-12 1:15:33 > top of Java-index,Core,Core APIs...