Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2008, 08:17 AM
Member
 
Join Date: May 2008
Posts: 2
nareshnettem is on a distinguished road
Reading Client Windows Registry through browser
Hi,

I am trying to read the Client Windows Registry by using an applet but it is throwing the following error in java console

java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)
at java.security.AccessControlContext.checkPermission (Unknown Source)
at java.security.AccessController.checkPermission(Unk nown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExec(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at RegQuery1.start(RegQuery1.java:63)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Is there any other approach to read the client Registry entrys other than applets?

please do the needful.

thanks in advance

regards,
Naresh.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-14-2008, 04:51 AM
Member
 
Join Date: May 2008
Posts: 22
Jesdisciple is on a distinguished road
I think you need to have the user install a full-blown application. Applets are "sandboxes" cut off from spying on or sabotaging the user.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-14-2008, 08:29 AM
Member
 
Join Date: May 2008
Posts: 2
nareshnettem is on a distinguished road
[solved] Reading Client Windows Registry through browser
thanks for your reply

we should sign the jar file for accessing the local filesystem from the
applet. for that I followed the below procedure to sign the jar:

Let Applet Name is MyApplet

keytool -genkey -alias MyApplet -validity 365

We have to provide all information about our locale. Fill all and then
sign the applet with jarsigner

jarsigner MyApplet.jar MyApplet

Regards,
Naresh.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
could not be found in the registry alam99 Eclipse 0 01-08-2008 09:21 AM
Identify Client in Socket Client Server Application masadjie Networking 1 12-20-2007 10:18 AM
swt for windows Gajesh Tripathi SWT / JFace 2 10-18-2007 07:43 AM
First windows application tha_crazy New To Java 1 08-13-2007 04:22 PM


All times are GMT +3. The time now is 09:31 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org