?
Solved

Return Codes of the JVM

Posted on 2003-03-24
8
Medium Priority
?
717 Views
Last Modified: 2007-12-19
I'm writing a command line tool in Java. I want the calling process to be able to use the return code of my java program. However the JVM itself returns codes to. How does the calling process differenciate between JVM return codes and the return codes of my java app.

I could choose a range in which my return code's should be but I don't know anything of the range limits of the JVM.

Any body know where I can find the range limits of the JVM return codes or any other solution to this problem?

Thanks.
0
Comment
Question by:whelo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 8194487
 The best thing you could do is to go through the JVM specification and find out what's going on: http://java.sun.com/docs/books/vmspec/
0
 
LVL 92

Expert Comment

by:objects
ID: 8197971
> However the JVM itself returns codes to.

Why do you say that?
0
 

Author Comment

by:whelo
ID: 8201711
Because I've seen it do that before.

I think it was when it threw a ClassDefinitionNotFoundException.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 8206231
Of course, when exceptions are thrown.
Will see what I can find for you.
0
 
LVL 92

Expert Comment

by:objects
ID: 8206507
Can't find anything specifically specifying what they are.
But the only ones that are an issue to you are if the JVM cannot start the class, so you could simply run a few tests to determine what they are.
0
 

Expert Comment

by:CleanupPing
ID: 9058518
whelo:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9732001
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept objects' comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question