• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Runtime class

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I tried to invoke Internet Explorer using the following piece of code.
// code to open ie
public class demo1 {
public static void main(String as[]){
Runtime r =Runtime.getRuntime();
Process p=null;
try{
p=r.exec("notepad");
}
catch(Exception e){
System.out.println(e.getMessage());
}
}
}
I got the error "Create process: iexploe error=2"
Please help in this reagrd.
Thanx
Karthik
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello!
visit www.javaworld.com
there is a topic regarding Runtime class.

Originally posted by Karthikeyan Vaidiswaran:
Hi,
I tried to invoke Internet Explorer using the following piece of code.
// code to open ie
public class demo1 {
public static void main(String as[]){
Runtime r =Runtime.getRuntime();
Process p=null;
try{
p=r.exec("notepad");
}
catch(Exception e){
System.out.println(e.getMessage());
}
}
}
I got the error "Create process: iexploe error=2"
Please help in this reagrd.
Thanx
Karthik


 
Goodbye moon men. Hello tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic