java.lang.NoClassDefFoundError: Illegal name: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Coderanch | Joe Vahabzadeh | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Preferences API and Mac (maybe XP also?!) OS, oddity/issue?

    Coderanch | 1 decade ago | Joe Vahabzadeh
    java.lang.NoClassDefFoundError: Illegal name: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Illegal name: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

      at java.lang.ClassLoader.defineClass()
    2. Java RT
      Preferences.importPreferences
      1. java.lang.ClassLoader.defineClass(ClassLoader.java:538)
      2. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      3. sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
      4. java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      5. sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
      6. java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      7. javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)
      8. javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:174)
      9. javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)
      10. java.util.prefs.XmlSupport.load(XmlSupport.java:210)
      11. java.util.prefs.XmlSupport.importPreferences(XmlSupport.java:181)
      12. java.util.prefs.Preferences.importPreferences(Preferences.java:1171)
      12 frames