Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Using getRuntime().exec() in plugin with Vista and UAC

Hi,

I'm currently working on an eclipse plugin and under Windows, I need it to
run a simple executable program that changes some IP configurations in the
registry.  Obviously, this kind of executable requires elevated privileges. 
But even though I created my executable so that it will prompt the user for
the administrator password when double-clicked or ran through the command
prompt, when used with getRuntime().exec(), it doesn't.

All I get instead is an exception saying that it needs to be run under
elevated privileges.  I know that running Eclipse as admin would fix the
problem, but I guess that's not really a solution :P

Does anyone know if there is actually a way for a plugin to get such
privileges?  Or simplys if there is some way in java to do so?

Thanks a lot!

Franck
-- 
View this message in context: http://www.nabble.com/Using-getRuntime%28%29.exec%28%29-in-plugin-with-Vista-and-UAC-tp19502740p19502740.html
Sent from the Eclipse PDE - General mailing list archive at Nabble.com.



Back to the top