Hi!
i creating java apps to edit windows registry ....
it is fine in Xp but in Vista its need admin privileges..
how do get it programmatic-ally...
You don't. You'd have to execute under a different user, of course.
in .net app.manifest is there..but in java anything is for admin privil..
Yes, the user under which it executes.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Then you need to use a user with admin privileges. I don't know why that is so hard for you to understand.
The only thing you can do with Java in the registry are the "preferences" type entries anyway, and if you are using the "user root" instead of the "system root" there is no problem. If you need to use the "system root", then you need to use a user with admin privileges.
Otherwise you are using command line tools or JNI, and you still need to remain within the system security processes.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494