Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.ExceptionInInitializerError



At 11:14 PM -0400 5/30/2001, Scott Kovatch wrote:
"ExceptionInInitalizerError is a runtime linkage error that is thrown when an exception occurs while the Java runtime is initializing a static variable or a class's static initializer. [...]" The exception that occurred is wrapped up in this exception, but I'd have to think for a bit about how to retrieve it.

Trap the error (which I think you can do if you're writing your own host app via JManager) and call the getException() method on the error. That'll give you the real exception and then you can print that out or print its stack trace as you see fit.

Hope this helps,
Eric

--
Eric Albert email@hidden
Intern, Java Classes


References: 
 >Re: java.lang.ExceptionInInitializerError (From: Scott Kovatch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.