• 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

Running external programs

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have tried on my mobile device windows mobile 5 with jcl9 i think the jvm is called, but I am unable to start any external programs on this platform, I have done it several times on normal windows but I get an IOException on this particular platform.

java.io.IOException: Unable to start program

Runtime.getRuntime().exec("\\Windows\\welcome.exe");
I can start this program by clicking on the file in total commander but not with above line.

I am using eswt so perhaps there might be any other way of doing this ?
I do not nessesarly wanna start a program but a lnk would be just as fine.

Any one know how to perhaps ?
 
U Kvistborg
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found that on windows mobile 2003, that the Runtime.exec method is not really implemented, it simply returns the exception, unable to start program, does any one know if this is the case for the J9 on windows mobile 5 aswell ?
The reason for that it have not been implemented on windows mobile 2003 is that on this platform it is not possible to pass the file pointer for System.out and .err to a child process, as is typical for Runtime.exec.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic