Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


mbartosh
2010-05-27T01:56:14Z
VC 5.5.5. I have Java processes that are run via batch file. I am running these batch files in VC. The problem is that VC never reports an error because the batch runs successfully even if the Java process produced errors. Is there a better way to run Java processes?
Sponsor
Forum information
Support
2010-05-27T09:19:47Z
The problem is probably that you are hiding the error in the .bat file. If you ran the java directly you would not have this problem.

The exit code needs to be passed back from the instance that was started by VisualCron - in this case the batch file.

The command EXIT returns an error code so you could probably, in your batch file, write:

exit "path to java.exe" "path to your java file"
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top