delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/24/19:06:10

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=FGdk1sMih4tLAt3e
C0NMma51vNx7wa4eWMixFqWcABUtwESvAyX1+sEAXFDvdOXNraIlOqKetjcGRSqs
HSt2dGYQkZ1pvyoAlNjiHhenS8d9EGCI6bogR6CFcc3gMAkgqXsX8TbaK7LDq4xi
6uYpv95rUpWo+1WoYTuyOtwYU00=
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=NKC6i4U3WgIcsTKuqQvYlz
f5HTM=; b=I12OzJkgZ0KY71Kg+/5j96f/QFQo+LphuOITBzvcXY36Dyb3ELeAXU
g5uGeuhVO8b1xly1dETloa58CsQGtwNOGiuWomNUgy1UQ106hHOMOSAV8S+vnb8F
rt5yp4SYyZrfHOMr53TNDCRJX9JhRhIbb8zEdU09YBSq7YLNeXXjE=
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=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Issue in Java path
To: cygwin AT cygwin DOT com
References: <CAAswNsgjZtwhLvy8_Z9xTKT=h26s4JUy6QshdkAjpBvynzM8OQ AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <a8376d08-a171-6bc4-d92b-d4bdbfd246d2@SystematicSw.ab.ca>
Date: Tue, 24 Sep 2019 17:05:14 -0600
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 2019-09-24 01:38, Rakhi Batra - Assistant Manager Publication wrote:
> 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 "$@")

There is no Cygwin Java, so please just define a Windows env var using Windows
paths and separators, do not explicitly specify it in the command line, and run
from a .cmd or .bat to avoid issues and bad assumptions:

set CLASSPATH=C:\Java\classes\lib.jar;C:\Java\classes\util.jar
java %JAVA_OPTS% org.dspace.app.launcher.ScriptLauncher %1 %2 %3 %4 %5 %6 %7 %8 %9

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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