[cygwin] Issue in Java path

Jason Pyeron jpyeron@pdinc.us
Tue Sep 24 12:04:00 GMT 2019


> -----Original Message-----
> From: Rakhi Batra - Assistant Manager Publication
> Sent: Tuesday, September 24, 2019 3:38 AM
> 
> 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

By dots, do you mean ":" ? Can you please provide a concrete example of the input and output?

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

This is a bad idea for at least 2 reasons.

1. the CLASSPATH variable has special meaning and the java executable will act on it if it exists - use $CP or anything else
2. you should "$(...)" not `...`

> org.dspace.app.launcher.ScriptLauncher "$@")
> 
> --
> Regards,
> 
> Rakhi
> 
> --
> 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



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



More information about the Cygwin mailing list