Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9313
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: ExceptionInInitializerError |
| Date | 2011-10-30 10:07 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-7ED1EB.10073030102011@news.aioe.org> (permalink) |
| References | <Xns9F8E6573E3F9Fjpnasty@94.75.214.39> |
In article <Xns9F8E6573E3F9Fjpnasty@94.75.214.39>,
Novice <novice@example..com> wrote:
> 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.
As suggested here, you may have re-factored FooConstants or Formats
since the last full build:
<https://groups.google.com/forum/#!msg/comp.lang.java.programmer/NrVbkOkDBsg/BtW0CQeuhDUJ>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | 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