cygpath problems

Rick Anderson
Tue Jan 30 12:42:00 GMT 2007


I am trying to run the following shell script in cygwin:

>#!  /bin/sh

>if [ $# -ne 1 ]; then

>            echo 1>&2 Usage: $0 certificate.p12

>            exit 127


>java -classpath ${AHECLIENT_HOME}/lib/org.mortbay.jetty.jar org.mortbay.util.PKCS12Import $1 ${AHECLIENT_HOME}/conf/aheclient.ks

>keytool -keystore ${AHECLIENT_HOME}/conf/aheclient.ks -import -alias rootca -file ${AHECLIENT_HOME}/lib/certs/cacert.pem -trustcacerts

Where AHECLIENT_HOME=~/aheclient-1.0.1/

When running this I get two error messages;

>bash-3.2$ ./kssetup ~/Certs/certificate.p12 

>java.lang.NoClassDefFoundError: org/mortbay/util/PKCS12Import

>Exception in thread "main" Enter keystore password:  sausage1

>keytool error: \home\Administartor\ahec

>ient-1.0.1\lib\certs\cacert.pem (The system cannot find the path specified)


I am aware that this is a path problem and that i need to use cygpath to resolve this issue but i have no idea how.  Sorry if this is a trivial question that has been covered before.


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list