• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.Runtime problem on iPAQ

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic