I\'m trying to set my JAVA_HOME in Cygwin with this command:
export JAVA_HOME=\"/cygdrive/c/Program Files/Java/jdk1.7.0_10\"
But when I do
Try using the DOS subst command to take the spaces of the JAVA_HOME path name. Assuming drive J; is not mounted or otherwise used.
In a DOS shell
subst j: "C:/Program Files/Java/jdk1.7.0_45"
J: is now an abbreviation for C:/Program Files/Java/jdk1.7.0_45
You can now cd to J:
now run Cygwin and
export JAVA_HOME="J:"