weird exception during start of applet... (J2SE5)

S

Stephan Zehrer

Hi,

does somebody have an idea what the exception:

java.lang.NoClassDefFoundError: IllegalName: <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.xml.sax.helpers.NewInstance.newInstance(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at Graph.init(Graph.java:465)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

mean?

The weird thing is, i have two pages on the first one i get this
exception
and on the other one, the applet work.

Check it out
not working -> http://www.stephan-zehrer.de/LiveGraph
working -> http://www.stephan-zehrer.de/html/graph/

They both uses the same jar file.

What's wrong?

thx

Steve
 
A

Andrew Thompson

java.lang.NoClassDefFoundError: IllegalName: <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

LOL!

...Sorry. It is just that I have never seen 'validate your HTML'
expressed so eloquently or forcefully.

<http://validator.w3.org/check?uri=http://www.stephan-zehrer.de/LiveGraph>

Note that if you wish to use the <applet> element and
keep that validator happy, you need to declare your HTML
as version either '3.2' or '4.01 Transitional'.

This one is actually far worse..
<http://validator.w3.org/check?uri=http://www.stephan-zehrer.de/html/graph/>

In fact, by the looks of the output, I would guess *it*
is the one throwing that error, but before I even bother
to check either, fix the HTML.
What's wrong?

Making up HTML as you go along, mainly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top