File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes command prompt from java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "command prompt from java" Watch "command prompt from java" New topic
Author

command prompt from java

sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
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

Joined: Mar 10, 2010
Posts: 31
Runtime.getRuntime().exec("cmd.exe");
this did not work for me.
Kiran Joshi
Ranch Hand

Joined: Sep 04, 2005
Posts: 54
Which operating system you are on?
sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
windows xp.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2207

Moved to our Beginning Java forum.
The question is not related to JDBC.
 
IntelliJ Java IDE
 
subject: command prompt from java
 
Threads others viewed
command promt
JCreator?
Jboss Not Run
how can i know the verison of my java
weblogicstarting problem
developer file tools