This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to set a variable with a space in the value?


On Tue, 30 Aug 2005, Reid Thompson wrote:

> Ashish.Srivastava@XXX.XX.XXX wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > Hi,
> >    I have a JDK installed in c:\Java SDK directory. I am
> > trying to export the JAVA_HOME in cygwin but it seems is crancking
> > out on the space.
> >
> > export JAVA_HOME=c:\Java\\ SDK
> > export JAVA_HOME=c:\"Java SDK\" and,
> > export JAVA_HOME="c:/Java SDK/"
> >
> > all fails. Please help!
> >
> > Thnx,
> > -Ashish
>
> try
> ln -s C:\\Java\ SDK /java
>
> export JAVA_HOME=/java

Ain't gonna work (and neither will mounts).  JAVA_HOME is usually used by
non-Cygwin programs, and those don't know about either symlinks or mounts.
Junctions (directory reparse points) do work, however.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]