Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Reading Windows Registry in Applet

843807Aug 14 2007 — edited Feb 16 2008
Hi Everyone,

My applet should read the proxy server settings present in the windows registry. I�m using �jRegistryKey.jar� which is an open source project for reading the windows registry.

Below code is working fine when I use it the standalone application, but this code is not working when I use it in the applet.
RegistryKey registryKey = new RegistryKey(RootKey.HKEY_CURRENT_USER,� Software\Microsoft\Windows\CurrentVersion\Internet Settings�);
Iterator i = registryKey.values();
This is the policy file that I defined for accessing the system resource
grant SignedBy ReadRegistry {        
	permission java.io.FilePermission "c:\\WINDOWS", "read"        	
};
Please help me on how to fix this issue.

Thanks
Aravind
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2008
Added on Aug 14 2007
6 comments
301 views