3 Replies Latest reply on Apr 16, 2002 1:31 PM by 843811

    reading a class from a zip-file in runtime

      I have a problem when reading a class from a zip file. At first everything worked OK. Then did I start modifying the class. For example do I have a simple System.out.print("testing a print"); and then did I test to add one more System.out.println("some more printing "+i);... This last thing results in a classFormatError (bad magic number)

      Here is the exception path:
      Exception in thread "main" java.lang.ClassFormatError: QTextButtonComponent (Bad magic number)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:512)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:441)
      at qub.io.QClassReader$QubClassLoader.findClass(QClassReader.java:75)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
      at qub.io.QClassReader.readClass(QClassReader.java:49)
      at qub.io.QPluginCreator.createPlugin(QPluginCreator.java:142)
      at qub.io.QPluginListReader.internalMakeCall(QPluginListReader.java:107)
      at qub.io.QPluginListReader.readPlugins(QPluginListReader.java:69)
      at qub.io.QPluginListReader.main(QPluginListReader.java:172)

      I have not extracted the classes in a test program, but if someone have time helping me out, I'll do that.

      /Bj�rn, BTH