954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Asmin privileges..

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...

in .net app.manifest is there..but in java anything is for admin privil..

musthafa.aj
Posting Whiz
312 posts since Nov 2009
Reputation Points: 19
Solved Threads: 45
 

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
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

in .net it is successfully going...

i don't know y u answering negatively...

musthafa.aj
Posting Whiz
312 posts since Nov 2009
Reputation Points: 19
Solved Threads: 45
 

Then use .Net

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

I extremely sorry if offend you in any way...

my requirements is like that...


i need java steps to write registry with admin privileges...

:pretty:

musthafa.aj
Posting Whiz
312 posts since Nov 2009
Reputation Points: 19
Solved Threads: 45
 

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
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You