Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

create process error 740 the requested operation requires elevation

807605Aug 24 2007 — edited Aug 24 2007
Hi Friends,

I'm trying to launch Virtual KeyBoard from my application. I'm using jdk1.6.0_02. (I also tried on jdk1.3 , which throws same exception as of jdk1.6.0_02)
try{
            Runtime.getRuntime().exec("C:\\Windows\\system32\\osk.exe");
        }
        catch(IOException ex){
            System.out.println(ex.getMessage());
This works fine on Windows XP , but on Windows Vista it throws exception :

Can not run Program "C:\Windows\System32\osk.exe" :create process error 740 the requested operation requires elevation

It works on Vista if I turn off user Account control from User Account in ControlPanel.

While If I try to launch (Calculator)Calc.exe instead of (Virtual KeyBoard)osk.exe then it launch successfully without turning off User Account Control.

Does any one has an idea how can I launch Virtual Keyboard ("osk.exe") without turning off user Account Control on Windows Vista.

I'll appreciate any help regarding this topic.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2007
Added on Aug 24 2007
3 comments
448 views