| Java FAQ | ||
| JSP FAQ | ||
| Servlet FAQ | ||
XyzWs Java FAQ:
How to specify multiple class search directories in the '-classpath' option of javac?
Printer-friendly version |
Mail this to a friend
|
Advertisement
|
How to specify multiple class search directories in the '-classpath' option of javac?In developing a Java application, your class search path will contain numerous
directories and JAR archives. The On UNIX, we would do this: javac -classpath dir1:dir2:dir3 ... whereas on Windows we have: javac -classpath dir1;dir2;dir3 ... The reason for the difference is that Windows uses the colon (:) character as part of a filename, so it can't be used as a filename separator. Naturally the directory separator character is different as well: forward slash (/) for UNIX and backslash (\) for Windows.
|