wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Consider Paul's rocket mass heater.
 
subject: Runtime.exec() problem issue Linux
 
Similar Threads
trouble importing javax.swing.JOptionPane
Unable to find a javac; Perhaps JAVA_HOME does not point to the JDK
classpath problem winxp
classes inside methods
Package visibility problem