Can I run java classes from CFEXECUTE? Here is the code I have, and the output:
<cfexecute name="java \path\to\MyClass"</cfexecute>
It doesn't seem quite right to me, as I am not sure whether 'java' is the application and the class name is its argument, and that is what should be executing. Anyway, when I run this code, I get the following error:
____________________________________
An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException: CreateProcess: java \path\to\MyClass error=2.
____________________________________
Subsequently I tried this:
<cfexecute name="java" arguments="\path\to\MyClass"></cfexecute>
And got the same error.
Am I missing something? The java class works fine on its own, and I am using CFMX Server on Win2000.
Regards,
Jonathan Daniels
<cfexecute name="java \path\to\MyClass"</cfexecute>
It doesn't seem quite right to me, as I am not sure whether 'java' is the application and the class name is its argument, and that is what should be executing. Anyway, when I run this code, I get the following error:
____________________________________
An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException: CreateProcess: java \path\to\MyClass error=2.
____________________________________
Subsequently I tried this:
<cfexecute name="java" arguments="\path\to\MyClass"></cfexecute>
And got the same error.
Am I missing something? The java class works fine on its own, and I am using CFMX Server on Win2000.
Regards,
Jonathan Daniels