java classpath in unix
I can run java in cygwin+windows using the following settings (the sw/jar directory has several jar files, and I pick the relevant one from the java command line): CLASSPATH=.;C:\sw\java_6u35\lib\\*;C:\sw\jar\\* java org.antlr.Tool Calc.g But I am having the following problems when running in linux: (1) I can't set a directory name in a classpath, the following line reports an error: setenv CLASSPATH .:/sw/jdk1.6.0_35/lib/\*:/sw/jar/* (2) when I run explictly with -jar option, I still get an error: java -jar /sw/jar/antlr-3.4.jar org.antlr.Tool Calc.g error(7): cannot find or open file: org