How to make a jar file with a security.policy file?

My programme has 2 parts:Server and Client.

In the Client,it contains a security.policy file,which is produced by the RMI plug-in.

The Server is Ok,and when run the Client in the eclipse environment,it's

OK too,but the problem is when compress the Client to a jar file,it doesn't work.I think it can not find the security.policy file(but the security.policy do exist in the jar file).

Could you tell me how to make a jar file with a security.policy file ?

Thank you very much.

[516 byte] By [a-lazy-rabbita] at [2007-11-27 5:59:06]
# 1
ClassLoader.getSystemResourceAsStream("security.policy") will return you the input stream. I think this help you.
javahelpera at 2007-7-12 16:35:07 > top of Java-index,Core,Core APIs...