This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Runtime.exec() problem issue Linux" Watch "Runtime.exec() problem issue Linux" New topic

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\""), 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

Sandeep Lakshmipathy
I agree. Here's the link:
subject: Runtime.exec() problem issue Linux
It's not a secret anymore!