delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/05/10:44:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <49f84bef0801050744y693f0ca2s421ecf579a61ef3@mail.gmail.com>
Date: Sat, 5 Jan 2008 09:44:04 -0600
From: "Dan Garrette" <dhgarrette AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: "Unable to access jarfile" when using full path of JAR
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi,

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:

$ pwd
/usr/local/bin
$ java -jar malt-1.0.1/malt.jar
<correct output>

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

It works just fine in DOS:

D:\>java -jar c:\cygwin\usr\local\bin\malt-1.0.1\malt.jar
<correct output>

The end goal is to run the JAR from a python program running in cygwin.

Thanks for the help,
Dan

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