It should be:
set MX_INSTALL=d:\cfusionMX
%MX_INSTALL%\runtime\jre\bin\java -classpath
%MX_INSTALL%\lib\cfusion.jar
coldfusion.tools.Compiler -webroot %1
-webinf %MX_INSTALL%\wwwroot\WEB-INF %1
As the article indicates, it's just 2 lines, the first being the SET and the second starting with %MX_INSTALL%.
But the printed version was somehow missing the beginning of the second line:
%MX_INSTALL%\runtime\jre\bin\java -classpath
So sorry for that printing mistake!
One other thing I've learned since writing the article is that it seems to fail to work if a directory name or file name being precompiled has spaces in the name.
Update: I've since found another issue with the version offered in the CFDJ. In certain instances it may fail to work, and it turns out that it was the setting the second line above to:
%MX_INSTALL%\runtime\jre\bin\java -classpath
as was shown in the article. It should instead be what I've set it to above:
%MX_INSTALL%\runtime\bin\java -classpath
Turns out that the runtime\jre\bin calls a 1.3 version of the java interpreter, and as of the updater 1 of CFMX, parts of this compile process (when using the -f directive) need the 1.4 interpreter. The corrected line calls the correct one. See my entry of 12/6/02 for more info.
/charlie