Hi Caleb, If you have the program available under <Os Drive>:\WINDOWS\system32 then you can run from the Start -> Run prompt.So if you have a shortcut to MSNmessenger.exe in the system32 , your code would work.Try copying the shortcut from your desktop or somewhere to the windows\system32 folder.
Thanks, Ashok A V On Sat, Aug 15, 2009 at 3:42 PM, pacior<[email protected]> wrote: > > If you use windows, > add direct path to Your program to be executed. > That should be added in exec method parameter. > > Regards > Pacior > > On Aug 15, 4:00 am, Caleb Josue Ruiz Torres <[email protected]> wrote: >> Greetings! >> In the Excersise 4.1 (Runtime class) >> of theLAB-1010Tour of java.lang.* and java.util.* classes >> >> i changed this line >> proc = rt.exec("notepad"); >> >> for this one >> proc = rt.exec("msnmsgr"); >> >> an Exception was the result: >> >> java.io.IOException: Cannot run program "msnmsgr": CreateProcess >> error=2, System Can't find the especified file >> >> why things don't work for msn messenger like for the notepad >> application? >> i tried >> proc = rt.exec("shutdown"); >> as well but nothing happens >> thanks a lot! > > > > -- Victory belongs to the most persevering. - Napoleon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
