If you are running a Java program and your classpath is in UNIX separator style (‘/’ instead of ”), you may be in trouble as java.exe is Windows specific executable which understands Windows separator and not UNIX style separator. To circumvent this issue in your shell script you can use the following:
java -cp `cygpath -wp $CLASSPATH`
instead of
java -cp $CLASSPATH