vba shell java call errors
问题 In an MS Access public function, I run a java xslt module using a shell call: Set shell = CreateObject("WScript.Shell") cmd = "java -jar D:\saxon9he.jar -s:D:\input.xml -xsl:D:\transf.xslt -o:D:\output.xml" Set objExecObject = shell.Exec(cmd) I caught the following error: As exactly the same worked fine in another MS Access instance, I assume I have to refer to an environment variable somewhere (one of these is JAVA_HOME which has been set to C:\Program Files\Java\jdk1.5.0_16\bin ). But where