My problem has evolved, so let me update the status and tell you what I've learned so far. To re-cap:
I am developing an application for Motorola's i95cl. The phone has the abiity to play midi files from J2ME via an OEM add-on class (MidiPlayer). Per the i95cl's developers' manual instructions, I downloaded the stubbed classes and placed the zip file in kToolBar's lib/apps directory. The results are described in my previous posts.
I then tried extracting MidiPlayer.class and placing it into an appropriate directory (com/motorola/...midi). At first I had the same problem as before, but then the preverification problem went away when I stopped trying to use kToolBar and used a batch file with the standard command line calls instead.
I was able to build a jar/jad pair, which downloaded to the phone just fine. But, when I attempted to install (as opposed to download it)it on the phone, during the "Loading Classes" step, I received an error message: "VM Error". I have lived with this error for over 5 days now.
Searching the boards resulted in several leads, but nothing has panned out. Among the things I've looked into are:
1. Looked for classes that are no longer used, but are included in the jad (this problem is caused by Motorola's verifying routine somehow).
2. "Formatting" and "Resetting" the
Java system on the phone (per Motorola's tech guy).
3. Re-downloading the stubbed classes in case they were corrupt (no change).
4. Reading and re-reading web sites, manuals, and books (headache and general grumpiness).
I next downloaded Motorola's own latest SDK and modelled my project on their demos. I then rebuilt using the same batch file they use for their demos. None of this caused any change in the symptoms. I then took one of their demo apps and put two lines of code in; one importing the MidiPlayer class, the other calling MidiPlayer.play. It didn't work either, but when I remove the line, it installs fine.
In desperation, I contacted Motorola Tuesday of this week and they asked me to send an example of the behavior to them, which I did. I just received a msg today (Friday) saying that it works fine for them!! In other words - sorry, we can't help.
What could be going on? It has just occured to me that they might be compiling with the actual classes (as opposed to the stubbed classes I'm using). What else could be different? I'm calling them again and I'd like some ideas, please...!?
Thanks!!!