Skip to main content

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 18:22
Adrian Jones is currently offline Adrian JonesFriend
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 Jun 21 16:40:38 GMT 2018

Powered by FUDForum. Page generated in 0.02994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top