File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classpath issue
 
Similar Threads
Doubt in K&B Self Test from Last Chapter
Classpath Question
run time error with axis and tomcat
How to modify autoexe ?
To set CLASSPATH in Win 98