delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/24/08:05:32

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=GX+KVT+ZSZmxIivy
EhAbp3bCMW5F8GoQDdx/CjLOK+TmbfLp+3fDyM0wLzAcV1v15ld/BZ1nxolsmZiH
SLbRJdNdKNOu/NHgfil3CQmmjtfgeyfRYtwkJPV/MWBpX45Ji2vxmm0RAxcsdJav
NwPeFkX4R2JoM5Ma2AJVN8gFIq8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=s5ilmYen0KKTQnpNMIckL3
9JKQs=; b=UdC6jLH+1eZVmU2r/uqTAEFNGSFV84C+oQsDjsdYiuiIfErUDegs/l
RwcJIQ3MfNWC9TFzp+E4JtJ6ApduTHjTS9kWdx+F9eNH7v0/xV4n1P8gb83/BemG
FIsJPMXOWWC+hDlcouAyHUvj9Zu9yJ1H/IL4kIcaAQIj4v2qjH7G8=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=wanting, kindly, letter, Manager
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Issue in Java path
To: cygwin AT cygwin DOT com
References: <CAAswNsgjZtwhLvy8_Z9xTKT=h26s4JUy6QshdkAjpBvynzM8OQ AT mail DOT gmail DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <c3fd713c-74b4-17da-426b-c021748246be@cs.umass.edu>
Date: Tue, 24 Sep 2019 08:04:35 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <CAAswNsgjZtwhLvy8_Z9xTKT=h26s4JUy6QshdkAjpBvynzM8OQ@mail.gmail.com>
X-IsSubscribed: yes

On 9/24/2019 3:38 AM, Rakhi Batra - Assistant Manager Publication wrote:
> Hello,
> I am facing an issue in the path of the file. Whenever I am executing the
> below command. The slashes in classpath are replaced with dots and I am
> unable to navigate to files in order to run the scripts. Kindly guide why
> this is happening and what is the solution. Thank you.
> 
> (java $JAVA_OPTS -classpath `cygpath -pu $CLASSPATH`
> org.dspace.app.launcher.ScriptLauncher "$@")

Seeing as you did not supply specifics it's a little hard to know exactly
what's going on, but it is conceivable that you need to put $CLASSPATH
inside double quotes, i.e., if it has the Windows ; separator in it.  Also,
I discovered that if Windows drives are mentioned, such as C:, the next
character needs to be \, that is: C:\..., not (e.g.) C:a\b.

But turning \ or / into . would not have been done by cygpath.  That
would be done by Java.

But lastly I note that I am not aware of any version of Java built for
cygwin.  Java is a Windows program, so you'd be wanting something more
like:

java $JAVA_OPTS -classpath "$(cygpath -pw "$CLASSPATH")" ...

$(...) is the more modern version of ` `, which is now deprecated.
The " " around $( ) is to prevent the ; in the path from ending the
java command line as it is being processed by bash.

For a path that starts with drive letter C (say), start the path with
/cygdrive/c.

Regards - EM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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