Re: ClassFormatError

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <006e01c3fd42$bab63cc0$764000b4@kardis>
Make sure you are not building the application with the '-noreflect' tag to
TINIConvertor.  Are the Controller and EventHandler classes both in the
flash?

Kris

----- Original Message -----
From: "Bernhard Boser" <boser-aFE07iDfcCIb0cFwG/[email protected]>
To: <tini-6tN4nzCoH/[email protected]>
Cc: <boser-aFE07iDfcCIb0cFwG/[email protected]>
Sent: Friday, February 27, 2004 12:16 AM
Subject: [TINI]ClassFormatError


> 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
>


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.