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: 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 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: From: Eliot Moss Message-ID: 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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