N
Novice
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.
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.