Message3672

Author otmarhumbel
Recipients foripperz, fwierzbicki, mr_tines, otmarhumbel
Date 2008-10-13.16:37:12
SpamBayes Score 5.1779916e-05
Marked as misclassified No
Message-id <1223915832.81.0.197862351027.issue1125@psf.upfronthosting.co.za>
In-reply-to
Content
Finally I begin to understand the cause of the problem.
The cmd shell transscript below (Windows Vista, 32bit) shows that
jython.bat breaks if the environment variable JAVA_HOME is not quoted,
and works if JAVA_HOME is quoted:


C:\stuff\jython\jython-2.5a3\bin>set JAVA_HOME
JAVA_HOME=C:\Program Files\Java\jre1.6.0_07

C:\stuff\jython\jython-2.5a3\bin>jython.bat
"Files\Java\jre1.6.0_07]" kann syntaktisch an dieser Stelle nicht
verarbeitet werden.

C:\stuff\jython\jython-2.5a3\bin>set JAVA_HOME="C:\Program
Files\Java\jre1.6.0_07"

C:\stuff\jython\jython-2.5a3\bin>set JAVA_HOME
JAVA_HOME="C:\Program Files\Java\jre1.6.0_07"

C:\stuff\jython\jython-2.5a3\bin>jython.bat
Jython 2.5a3 (trunk:5315:5317, Sep 10 2008, 20:54:23)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
>>> 


Since we cannot make assumptions how a user will define JAVA_HOME, I
have to find a way for empty-test JAVA_HOME both in the quoted and
unquoted case.
History
Date User Action Args
2008-10-13 16:37:12otmarhumbelsetmessageid: <1223915832.81.0.197862351027.issue1125@psf.upfronthosting.co.za>
2008-10-13 16:37:12otmarhumbelsetrecipients: + otmarhumbel, fwierzbicki, mr_tines, foripperz
2008-10-13 16:37:12otmarhumbellinkissue1125 messages
2008-10-13 16:37:12otmarhumbelcreate