Java is pretty agnostic when it comes to path separators, so you can use either type of slash when specifying a path. Thus you could use: -classpath c:/foo;d:/bar;c:/jars/my.jar;. on Windows and it would work just as well. When using file paths in Java, I find it easier to use: String props = "C:/MyApp/resources/main.properties"; than String props = "C:\\MyApp\\resources\\main.properties"; As I switch between UNIX and Windows, I'm always using the same path separator which keeps things consistent. [ September 11, 2003: Message edited by: Wayne L Johnson ]
Joined: Dec 10, 2001
Your post isn't perfectly clear to me. I'm not a Linux user, I just pretend to give CLASSPATH advice at times. Someone once told me that the CLASSPATH locations on Linux had to be separated with colons. Is this not the case and we can just use semicolons as with Windows?