• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

command prompt from java

 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to open command prompt from java code?
getRuntime();
returns a Runtime object.
but when i call it , the variable is not recognised.
and there are lot of errors .
 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Runtime.getRuntime().exec("cmd.exe");
this did not work for me.
 
Kiran Joshi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which operating system you are on?
 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
windows xp.
 
Jan Cumps
Bartender
Posts: 2599
12
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to our Beginning Java forum.
The question is not related to JDBC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic