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! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
