ClassFormatError
"Bernhard Boser" <boser-aFE07iDfcCIb0cFwG/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Organization | UC Berkeley |
| Message-ID | <002101c3fcf9$3aaf2940$0400a8c0@MOLINERA> |
I am trying to use dynamic class loading in a situation where most of the
program resides in the flash (I use a TStik with lots of flash). The class I
am trying to load is in RAM (dynamic/DynamicEventHandler.class). Error from
Tini (firmware 1.12):
java.lang.ClassNotFoundException: Class format error on
dynamic/DynamicEventHandler: dynamic/DynamicEventHandler: null
in java.lang.Throwable.???
in java.lang.Throwable.<init>(@JPC=90004)
in java.lang.Exception.<init>(@JPC=90003)
in java.lang.ClassNotFoundException.<init>(@JPC=90003)
in com.dalsemi.system.classloader.TINIClassLoader.loadClass(@JPC=1300b4)
in java.lang.ClassLoader.loadClass(@JPC=120004)
in java.lang.Class.forName(@JPC=d0080)
in ...
Dynamic loading works fine when the class to be loaded is built into the
application that resides in the flash. I use the -target 1.1 switch on the
compiler.
The code of the class to be loaded is below:
package dynamic;
import boser.tini.Controller;
import boser.tini.EventHandler;
public class DynamicEventHandler implements EventHandler {
public void init(Controller controller) throws Exception {
System.out.println("DynamicEventHandler.init");
} // init
public void run() {
} // run
} // DynamicEventHandler
Thank you for your help / suggestions.
Bernhard
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini