Message5463
It appears that having items in the CLASSPATH with parentheses in the name causes problems with Jython.bat.
One common case where this occurs is when Quicktime is installed on 64-bit Windows - the following classpath is set:
CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
If one attempts to run jython in this environment, it fails with the error:
\QuickTime\QTSystem\QTJava.zip was unexpected at this time.
Originally, this was reported under issue1330 as I assumed it was the spaces in the classpath causing the problem.
otmarhumbel has suggested the following workaround:
A possible solution could be to replace
:argsDone
if not defined _BOOT_CP (
if defined CLASSPATH (
set CLASSPATH=%_CP:"=%;%CLASSPATH:"=%
) else (
set CLASSPATH=%_CP:"=%
)
)
with
:argsDone
rem do not use 'if () else ()' because this does not work with CLASSPATH containing (x86)
if defined _BOOT_CP goto fullCmd
if defined CLASSPATH goto classpathDefined
set CLASSPATH=%_CP:"=%
goto fullCmd
:classpathDefined
set CLASSPATH=%_CP:"=%;%CLASSPATH:"=%
:fullCmd |
|
Date |
User |
Action |
Args |
2010-01-28 19:46:02 | jaraco | set | recipients:
+ jaraco, otmarhumbel |
2010-01-28 19:46:02 | jaraco | set | messageid: <1264707962.06.0.217701814389.issue1548@psf.upfronthosting.co.za> |
2010-01-28 19:46:01 | jaraco | link | issue1548 messages |
2010-01-28 19:46:00 | jaraco | create | |
|