This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes classpath issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Java in General
Bookmark "classpath issue" Watch "classpath issue" New topic
Author

classpath issue

Sandeep Lakshmipathy
Ranch Hand

Joined: Mar 05, 2002
Posts: 31
In my java program, I dynamically compile programatically generated .java files using the process.exec() call. Here I used the javac command with -classpath option to specify the classpath to be used for compilation. But I saw that the classpath had directories with spaces in their name and so enclosed the argument to classpath in "". This seems to create problems in Linux. Is there a general workaround for this?
Thanks
Sandeep


Sandeep Lakshmipathy
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I don't know how universal it is, but sometimes the spaces can be replaced with %20 .
Good Luck.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: classpath issue