#12 Compiling j2me with avetanaBluetooth in calss path

open
nobody
None
5
2007-02-11
2007-02-11
No

Hi Moritz
-- This is a copy of my e-mail you applied to comercial version --

I have some fix for avetanaBluetooth.

The idea is to compile and test appliaction using java SE and then just move the appliaction to the phone.

This is the problem I come acros with avetanaBluetooth
javax.microedition.io.Connector class

I'm building and testing my j2me appliaction with avetanaBluetooth.
If I add avetanaBluetooth in class path and then compile midlets that
using regular javax.microedition.io.Connector.open then I get bytcode
that will not run on cell phone:

This error: java.lang.NoClassDefFoundError:
de/avetana/bluetooth/connection/Connector

This is because the class you have is like this:
package javax.microedition.io;
public class Connector extends de.avetana.bluetooth.connection.Connector
{
public Connector()
{
}
}

This way all static methods from this class used in java application
will point to internal de.avetana... class.

Decompile the tests classes and see....

If you will use the stub attached in this e-mail then there would be
no such problem!

I tested it in myapplications!

Discussion

  • Fix for Connector class

     
    Attachments