<div>I think there should probably be double quotes around %JAVACMD% in the set EXEC line, in case the contents of JAVACMD include any spaces.</div><div> </div><div>Richard</div>