Anthony Lucia
asked on
JAVA_HOME fails on spaces and quotation marks with SET command
On WIndows 2008...
From a Command prompt...
I performed the following:
Now I can do the following:
So now I try an installation procedure of Shibboleth, and later in the install, the install crashed on this line:
The command prompt now breaks out of the .bat file and reports the following:
There are two spaces in the JAVA_HOME "Program Files (", so I have to set the JAAVA_HOME with quotation marks, as follows:
... and either the spaces or the quotation marks are causing an issue
How can I fix this?
Thanks
From a Command prompt...
I performed the following:
SET JAVA_HOME="c:\program files (x86)\Java60\jre"
Now I can do the following:
echo %JAVA_HOME%
"c:\program files (x86)\Java60\jre"
So now I try an installation procedure of Shibboleth, and later in the install, the install crashed on this line:
set JAVACMD="%JAVA_HOME%\bin\java.exe"
The command prompt now breaks out of the .bat file and reports the following:
\Java60\jre"\bin\java.exe" was unexpected at this time.
set JAVACMD=""c:\program files (x86)\Java60\jre"\bin\java.exe"
There are two spaces in the JAVA_HOME "Program Files (", so I have to set the JAAVA_HOME with quotation marks, as follows:
SET JAVA_HOME="c:\program files (x86)\Java60\jre"
... and either the spaces or the quotation marks are causing an issue
How can I fix this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You dont have to set JAVA_HOME if you install official java package
"C:/Java/..."
If not you will keep running into these sorts of problems.
Doug