This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "classpath issue" Watch "classpath issue" New topic

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?

Sandeep Lakshmipathy
Dirk Schreckmann

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]
It is sorta covered in the JavaRanch Style Guide.
subject: classpath issue
jQuery in Action, 3rd edition