X-Spam-Check-By: sourceware.org Date: Tue, 30 Jan 2007 09:49:34 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Rick Anderson cc: cygwin AT cygwin DOT com Subject: Re: cygpath problems In-Reply-To: <84265.54844.qm@web23115.mail.ird.yahoo.com> Message-ID: References: <84265 DOT 54844 DOT qm AT web23115 DOT mail DOT ird DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, 30 Jan 2007, Rick Anderson wrote: > Hi > > 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 > >fi > > > >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: java.io.FileNotFoundException: \home\Administartor\ahecient-1.0.1\lib\certs\cacert.pem (The system cannot find the path specified) > >bash-3.2$ > > 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. You can use the Java wrapper scripts[1] to both take care of the classpath problem, and as an example of the kind of translation you need to do to the application arguments. One suggestion is to use relative paths for application arguments, which should eliminate the need to do the cygpath translation. HTH, Igor [1] -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/