Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime.exec() problem issue Linux

 
Sandeep Lakshmipathy
Ranch Hand
Posts: 31
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic