X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <477FAD0D.7080105@gmail.com> Date: Sat, 05 Jan 2008 16:15:09 +0000 User-Agent: Thunderbird 2.0.0.9 (X11/20080105) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: "Unable to access jarfile" when using full path of JAR References: <49f84bef0801050744y693f0ca2s421ecf579a61ef3 AT mail DOT gmail DOT com> In-Reply-To: <49f84bef0801050744y693f0ca2s421ecf579a61ef3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Dave Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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` > It works just fine in DOS: > > D:\>java -jar c:\cygwin\usr\local\bin\malt-1.0.1\malt.jar > As expected. Dave. -- 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/