Invoking Knime from Java Application

Dear All,

I have tried to invoke knime workflow in batchmode 

String btchtrendcheck ="E:\\KNIME\\knime.exe -application org.knime.product.KNIME_BATCH_APPLICATION -consoleLog -reset -workflowFile=\"C:\\Users\\Jana\\Desktop\\\""

String trendtest = "E:\\KNIME\\knime.exe -application org.knime.product.KNIME_APPLICATION";

However I get an error: "java was started but returned exit code=3" (attached the error). and even by clicking OK , the workflow was not executed.

Can anyone help me with your suggestion?

Try executing the command line plus -noexit in a shell (see also Then you will see an error message that tells you more about the problem.

Thanks Thor!
I tried but still the same error!

Did you see the batch executor's messages in the windows that opens up?