File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime.exec() problem issue Linux

 
Sandeep Lakshmipathy
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic