delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/07/12:28:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 7 Jan 2008 12:27:16 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave <kilroyd AT googlemail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: "Unable to access jarfile" when using full path of JAR
In-Reply-To: <477FAD0D.7080105@gmail.com>
Message-ID: <Pine.GSO.4.63.0801071224320.3442@access1.cims.nyu.edu>
References: <49f84bef0801050744y693f0ca2s421ecf579a61ef3 AT mail DOT gmail DOT com> <477FAD0D DOT 7080105 AT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 Sat, 5 Jan 2008, Dave wrote:

> Dan Garrette wrote:
> > I'm having a problem running JAR files in cygwin.
> >
> > If I attempt to call a JAR file using its relative path, then it works
> > fine:
> >
> > But, if I attempt to call a JAR file using its full path, the file no
> > longer seems visible:
> >
> > $ pwd
> > /usr/local/bin
> > $ java -jar /usr/local/bin/malt-1.0.1/malt.jar
> > Unable to access jarfile /usr/local/bin/malt-1.0.1/malt.jar
>
> The java executable is not cygwin aware, so in both DOS and cygwin
> environments you need to use windows paths. You can use cygpath to do
> the translation if necessary.
>
> $ java -jar `cygpath -m /usr/local/bin/malt-1.0.1/malt.jar`

Or use the Java wrapper scripts from
<http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps>.
:-)

> > It works just fine in DOS:
> >
> > D:\>java -jar c:\cygwin\usr\local\bin\malt-1.0.1\malt.jar
> > <correct output>
>
> As expected.

Indeed.
	Igor
-- 
				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!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019