Input/Output Bluetooth Bondrucker MZ220 keine Verbindung

Bluedaishi

Bekanntes Mitglied
Hallo Leute ich hoffe ich finde hier etwas Hilfe
ich bekomme die bluetooth Verbindung zum Thermodrucker aus meiner Anwendung nicht hin
hier mein Versuch bis her

Java:
package printer;

import com.zebra.blackberry.comm.BluetoothPrinterConnection;
import com.zebra.blackberry.printer.FormatUtil;
import com.zebra.blackberry.printer.ZebraPrinter;
import com.zebra.blackberry.printer.internal.ZebraPrinterCpcl;
import com.zebra.blackberry.util.LongMap;
import java.util.HashMap;

class New1
{
public static void main (String argv[]) throws Exception
{
// This function will print out a format that has
// been stored on the printer as 'TEST.FMT'. It will 
// populate three variables in the stored format with the 
// contents of the HashMap 'vars'. 

String macAdd = "00037A4D7CFF";
String formatName = "TEST.FMT";          
 

BluetoothPrinterConnection myConn = new BluetoothPrinterConnection(macAdd);
ZebraPrinter myPrinter = new ZebraPrinterCpcl(myConn);
FormatUtil utility;
 
try {
     
      // Open connection to printer. This requires that
      // the devices already be paired.
      myConn.open();
     
      // If not already done, we store the CPCL format on the printer. This
      // only has to be done once, ideally outside of this application.
      // See CPCL manual for more details.
      byte[] CPCLFormat = (
                  "! DF TEST.FMT\n" +
                  "! 0 200 200 310 1\n" +
                  "CENTER\n" +
                  "TEXT 4 1 0 50 RECEIPT\n" +
                  "TEXT 4 0 0 150 \\\\\n" +
                  "TEXT 4 0 0 200 \\\\\n" +
                  "TEXT 4 0 0 250 \\\\\n" +
                  "FORM\n" +
                  "PRINT\n").getBytes();
                 
      myConn.write(CPCLFormat);
     
     
     
      // Close connection
      myConn.close();
     
} catch(Exception ex)
{
      // Catch error here
}
}
}

Die Fehler Meldung sieht wie folgt aus ….

Java:
dyld: lazy symbol binding failed: Symbol not found: _IOBluetoothLocalDeviceReadSupportedFeatures
  Referenced from: /private/var/folders/7q/3zx19sg16rn2nf1wx8p8c9700000gn/T/bluecove_user_0/libbluecove.jnilib
  Expected in: /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth

dyld: Symbol not found: _IOBluetoothLocalDeviceReadSupportedFeatures
  Referenced from: /private/var/folders/7q/3zx19sg16rn2nf1wx8p8c9700000gn/T/bluecove_user_0/libbluecove.jnilib
  Expected in: /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth

ich hoffe es kann mir jemand weiterhelfen

vielen Dank schon mal
 

Ähnliche Java Themen

Neue Themen


Oben