Я купил термопечати Epson TM-T88IV. Я установил Epson JavaPOS ADK с помощью руководства по установке.JavaPOS - Epson TM-T88IV - UnsatisfiedLinkError в Eclipse
Затем я добавил Jar-файлы из папки lib из Epson JavaPOS в Eclipse и написал простую программу, которая подключается к принтеру.
public class MainClass {
public static void main(String[] args)
{
//System.out.println("Ausgabe aus der main()-Methode");
POSPrinterControl113 ptr = (POSPrinterControl113)new POSPrinter();
try {
//Open the device.
//Use the name of the device that connected with your computer.
ptr.open("EPSON_TM_T88IV");
//Get the exclusive control right for the opened device.
//Then the device is disable from other application.
ptr.claim(1000);
//Enable the device.
ptr.setDeviceEnabled(true);
}
catch(JposException ex) {
}
}
}
Но я получаю эти ошибки:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jp_co_epson_upos_firm_FirmNativeAccess_1_13_0001 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jp.co.epson.upos.core.v1_13_0001.pntr.CommonPrinterService.<clinit>(CommonPrinterService.java:1004)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory.createInstance(EpsonJposServiceInstanceFactory.java:142)
at jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source)
at jpos.BaseJposControl.open(Unknown Source)
at MainClass.main(MainClass.java:15)
можно напечатать что-то с «CheckHealth.bat»
Имеет кто-то идея решить эту проблему?
С наилучшими пожеланиями
Meinzelmaenchen
- Я использую Windwos 8.1 (64-Bit)
- Термальный принтер подключен по USB
- Версия EPSON JavaPOS ADK является 1,13 .15
- Новые 32-разрядные Java-версии Java JDK и JAI установлены