Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interacting with registry on windows platform!!  RSS feed

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Can some body tell me good reference material/website to interact with registry. The objective is to write some data into it while installing a program which can be extracted afterward.
Any help??
regards,
Arun
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any taker for this thread?
Arun
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to have a look at the J2SE 1.4's Preferences API.
If you want some code, you can look at the java.util.prefs.WindowsPreferences class.
Another resource: Sir, What is Your Preference?
 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get a free Java JNI package to manipulate the MS Windows Registry from http://www.trustice.com/java/jnireg/
You can access the windows registry through the Java 1.4 preferences API.
http://www.esus.com/javaindex/j2se/jdk1.2/javautil/preferences/prefsaccessregistry.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!