File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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]
I agree. Here's the link:
subject: classpath issue
It's not a secret anymore!