Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9312
| From | Novice <novice@example..com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | ExceptionInInitializerError |
| Date | 2011-10-30 13:57 +0000 |
| Organization | Your Company |
| Message-ID | <Xns9F8E6573E3F9Fjpnasty@94.75.214.39> (permalink) |
I'm getting an unexpected runtime error when I execute my applet on a
webpage from a jar. I should note that I do NOT get this same error when I
run this same applet in Eclipse, either as an applet or as application
using Roedy Green's "Hybrid/switchhitter" technique.
This is the line that it doesn't like:
switch(FooConstants.DESIRED_FORMAT) {
The relevant line of FooConstants is:
public static final Formats DESIRED_FORMAT = Formats.PARAGRAPH_FORMAT;
And Format is defined as follows:
public enum Formats {
/** Bulleted list. */
LIST_FORMAT,
/** Paragraph. */
PARAGRAPH_FORMAT
}
Can anyone tell me why I'm getting this error? Also, I'm curious to know
why this error doesn't occur when I run the applet in Eclipse.
--
Novice
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
ExceptionInInitializerError Novice <novice@example..com> - 2011-10-30 13:57 +0000
Re: ExceptionInInitializerError "John B. Matthews" <nospam@nospam.invalid> - 2011-10-30 10:07 -0400
Re: ExceptionInInitializerError Novice <novice@example..com> - 2011-10-30 15:14 +0000
Re: ExceptionInInitializerError Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-30 17:52 +0200
Re: ExceptionInInitializerError Lew <lewbloch@gmail.com> - 2011-10-30 08:45 -0700
Re: ExceptionInInitializerError Roedy Green <see_website@mindprod.com.invalid> - 2011-10-30 23:57 -0700
Re: ExceptionInInitializerError Roedy Green <see_website@mindprod.com.invalid> - 2011-10-31 01:28 -0700
csiph-web