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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
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: 2510
    
  10

Moved to our Beginning Java forum.
The question is not related to JDBC.


OCUP UML fundamental and ITIL foundation
youtube channel
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: command prompt from java