On Wed, 14 May 2003 14:18:01 -0700, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:
>You seem to have wrong quotes. Like here:
>
>> Files\j2sdk1.4.1_02\bin\java.exe" -classpath ""G:\Program
> ~~
>you should just have one dobule-quote, not two.
>
>regards,
>--
>Kohsuke KAWAGUCHI 408-276-7063 (x17063)
>Sun Microsystems kohsuke.kawaguchi_at_sun.com
Kohsuke is right. Since you have spaces in your jaxb path AND use
double-quotes in your batch file, you should modify xjc.bat:
1. Make a backup of xjc.bat (it's in %JAXB_HOME%/bin directory).
2. comment out the line which calls setenv.bat:
rem call %PRG%\..\..\..\jwsdp-shared\bin\setenv.bat
3. remove quotes from "set JAXB_HOME..." line:
set JAXB_HOME=%PRG%\..\jaxb-1.0
4. remove quetes around "%PRG%" in the "...java.exe..." line:
"%JAVA_HOME%\bin\java.exe" -classpath %PRG%;%PRG%\..;%PRG%\..\..\ ....(long cmd line) ....
I just tried and it worked.
Or you can reinstall java and jaxb under the path without spaces, like
G:\java\... and do not use double-quotes in your bat file.
Yakov Polonsky
ypolonsky_at_marketswitch.com