aspose file tools*
The moose likes Java in General and the fly likes Runtime.exec() problem issue Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Runtime.exec() problem issue Linux" Watch "Runtime.exec() problem issue Linux" New topic
Author

Runtime.exec() problem issue Linux

Sandeep Lakshmipathy
Ranch Hand

Joined: Mar 05, 2002
Posts: 31
Dear Friends,
I see that in Linux when I make the statement
getRuntime.exec("javac -classpath \"/root/test\" A.java"), the statement will result in compilation error of the javac cmd i am trying to execute when I run my test program. It works when I remove quotes i the -classpath option. But that could be a problem if the classpath has a dir that has spaces in its name
What is the problem. As i am presuming, is it a problem with exec() call in Linux
Thanks


Sandeep Lakshmipathy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Runtime.exec() problem issue Linux