简体   繁体   English

使用Epson JavaPOS ADK 1.11.18.0时遇到问题

[英]Trouble with using Epson JavaPOS ADK 1.11.18.0

I recently bought a Epson TM-T20 Printer and I am currently trying to build a java application that will utilize this. 我最近购买了爱普生TM-T20打印机,目前正在尝试构建可利用此功能的Java应用程序。 I have the included JavaPOS that came with the printer installed and its related .jar files added into my build path. 我已经安装了打印机附带的JavaPOS,并将其相关的.jar文件添加到了我的构建路径中。 With all this said, I keep getting this error when trying to run some of the sample examples that are packaged along with it. 综上所述,尝试运行与之打包在一起的一些示例示例时,我总是收到此错误。

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jp_co_epson_upos_firm_FirmNativeAccess_1_11_0001 in java.library.path 线程“ AWT-EventQueue-0”中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有jp_co_epson_upos_firm_FirmNativeAccess_1_11_0001

In case the rest of the trace stack helps 如果其余的跟踪堆栈有帮助

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_11_0001.pntr.CommonPrinterService.(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at jp.co.epson.uposcommon.creator.EpsonJposServiceInstanceFactory.createInstance(Unknown Source) at jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) at jpos.BaseJposControl.open(Unknown Source) at Step1Frame.processWindowEvent(Step1Frame.java:79) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at 在java.lang.ClassLoader.loadLibrary(未知源)在java.lang.System.loadLibrary(未知源)在jp.co.epson.upos.core.v1_11_0001.pntr .CommonPrinterService。(未知源)在java.lang.Class.forName0(本机方法)在java.lang.Class.forName(未知源)在jp.co.epson.uposcommon.creator.EpsonJposServiceInstanceFactory.createInstance(未知源) java.awt的jpos.loader.simple.SimpleServiceConnection.connect(未知的源)jpos.BaseJposControl.open(未知的源)在java.awt的Step1Frame.processWindowEvent(Step1Frame.java:79)(java.awt的Window.processEvent(未知源)) java.awt.Container.dispatchEventImpl(未知源)处的java.awt.Window.dispatchEventImpl(未知源)处的java.awt.Component.dispatchEventImpl(未知源)处的java.awt.EventQueue中的.Component.dispatchEventImpl(未知源) .dispatchEventImpl(未知源)(位于java.awt.EventQueue.access $ 200(未知源)在java.awt.EventQueue $ 3.run(未知源) java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知方法)java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知方法)java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知方法)处java.awt.EventQueue $ 3.run(未知源)在java.awt.EventQueue $ 4.run(未知源)在java.awt.EventQueue $ 4.run(未知源)在java.security.AccessController.doPrivileged(本机方法)在java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知源) )的java.awt.EventQueue.dispatchEvent(未知源)处的java.awt.EventDispatchThread.pumpOneEventForFilters(未知的源)java.awt.EventDispatchThread.pumpEventsForFilter(未知的源)处java.awt.EventDispatchThread.pumpEventsForHierarchy(未知的源)处java.awt.EventDispatchThread.run中的java.awt.EventDispatchThread.pumpEvents(未知源)java.awt.EventDispatchThread.run中的java.awt.EventDispatchThread.pumpEvents(未知源)(未知源)

OTHER INFORMATION 其他资料

  • OS: W7 x64 作业系统:W7 x64
  • IDE: Eclipse Juno Service Release 1 x64 IDE:Eclipse Juno服务版本1 x64
  • Have the latest JDK installed 安装了最新的JDK
  • JavaPOS has a application called setupPOS. JavaPOS有一个名为setupPOS的应用程序。 I have also added my printer in this setup 我还在此设置中添加了打印机

Any help would be greatly appreciated. 任何帮助将不胜感激。 Thank you 谢谢

According to the java documentation the UnsatisfiedLinkError exception is: 根据Java文档 ,UnsatisfiedLinkError异常为:

Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native. 如果Java虚拟机找不到声明为native的方法的适当本机语言定义,则抛出该异常。

According to another question in SO that you can read here the problem might be in your library path. 根据SO中的另一个问题,您可以在这里阅读,问题可能出在您的库路径中。 Try to include the option 尝试包括该选项

-Djava.library.path=./XXX

Where ./XXX would be the relative or full path to where your printer driver may be stored (the directory where jp_co_epson_upos_firm_FirmNativeAccess_1_11_0001.dll or .so is located). ./XXX将是您的打印机驱动程序存储的相对路径或完整路径(位于jp_co_epson_upos_firm_FirmNativeAccess_1_11_0001.dll或.so的目录)。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM