I thought this should be simple to fix, so I put leJOS 0.3.0alpha on an MSW-XP machine, changed the nxj*.bat files and it all seems to work just fine with spaces in the filenames and environment variables.
In each of the nxj*.bat files, I made two changes (where applicable):
1. I replaced the parameter list (%1 %2 %3 %4 %5 %6 %7 %8 %9) with a percent sign and an asterisk (%*),
2. I removed double quotes from any SET lines, since cmd.exe doesn't need them and will add these as part of variable itself.
I didn't try downloading the firmware again, but did use nxjc, nxj, nxj -r and nxjbrowse -- all without problem. Environment settings were:
- Code: Select all
set NXJ_HOME=C:\Program Files\lejos_nxj
set JAVA_HOME=C:\Program Files\Java\Jdk1.6.0_02
set PATH=%PATH%;%NXJ_HOME%\bin;%JAVA_HOME%\bin
I'm not sure what nxjlink is supposed to do, it ran, but spewed unprintable things (literally) all over my screen.
Can someone else try this and see if my fix works for them also?
Happy Haquing,
NVRAM

