tags:

views:

106

answers:

1

I'm using java to run a command line utility written in Rhino but if there is an error I need to return that error back to the shell so processing stops. How do I pass back an error code from Rhino to the shell?

+2  A: 

you could use

java.lang.System.exit(1);
dfa