Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » return codes(how to see the exit code)
return codes [message #817160] Fri, 09 March 2012 13:22
Adrian Jones is currently offline Adrian Jones
Messages: 1
Registered: March 2012
Junior Member
I have a simple java program which runs and works as expected - except I do not know how to see the return code? I use system.exit(0) for success and system.exit(1) for failure - but within the eclipse IDE how do I see the value of the return code?

I want to be able to compile this code into a .jar and run with java -jar xxx.jar and see the return code on the DOS command line - I cannot get this to work (it always returns 0) so I wanted to ensure my program was exiting as I expected but just cannot find a way to see the exit code?
Previous Topic:problem of java project,error of javaxpcomglue.dll from mozilla;
Next Topic:dropin folder for implementing plugin
Goto Forum:
  


Current Time: Thu Aug 21 10:08:03 EDT 2014

Powered by FUDForum. Page generated in 0.01719 seconds