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.