• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.Runtime problem on iPAQ

 
Iftikhar Ahmed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
i have posted this topic on other forums as well, but could
not find any suitable solution, perhaps anybody here knows.
Here goes the problem:
When I run the following code on my iPAQ(pocketpc 2002)
try {
Runtime.getRuntime().exec("\\Windows\\calc.exe");
}
catch(Exception ex){
//catch exception here
}
I get following Exception : Unable to start program
Does anybody have idea, why the process is not running ?
or are there alternates ?
(i am using CDC profile).
-iftikhar
 
Daryl Wilding-McBride
Author
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two thoughts:
(i) What do you mean by the CDC profile? Do you mean Foundation Profile? Or Personal Profile?
(ii) Have you tried a relative filepath?
 
Iftikhar Ahmed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daryl Wilding-McBride:
Two thoughts:
(i) What do you mean by the CDC profile? Do you mean Foundation Profile? Or Personal Profile?
(ii) Have you tried a relative filepath?

thanks Daryl.
(i) I am using Foundation Profile.
(ii) yes i have tried, but it still the same error.
I am using IBM J9(for java runtime) at my pda.
according to my research exec() method makes use of native helper method
to execute any process. Pehaps this is not supported on pocketpc operating system.
Anyway i wanted to hear if anybody ever have been successful in running process on pda with Runtime.exec() ?
or if are there any alternates for this ?
regards
-iftikhar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic