简体   繁体   English

JPos应用程序错误

[英]JPos application error

Hi I am trying to debug the jpostest application that came with Motorola Scanner SDK foe Windows. 嗨,我正在尝试调试Motorola Scanner SDK敌人Windows附带的jpostest应用程序。

I am using Eclipse (Juno) with Java 7 on Windows 8. 我在Windows 8上使用Eclipse(Juno)和Java 7。

I get the following exception when I click on the 'open' button in the 'Scanner' tab of the POSTest application. 当我点击POSTest应用程序的“扫描仪”选项卡中的“打开”按钮时,我收到以下异常。

jpos.JposException: Could not connect to service with logicalName = MotorolaScannerSNAPI: Exception.message=com.symbol.jpos.SymScannerSvc112Factory org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array. jpos.JposException:无法使用logicalName = MotorolaScannerSNAPI连接到服务:Exception.message = com.symbol.jpos.SymScannerSvc112Factory org.eclipse.debug.core.DebugException:com.sun.jdi.ClassNotLoadedException:类型未加载时发生检索数组的组件类型。

Any help would be highly appreciated. 任何帮助将受到高度赞赏。

Thanks. 谢谢。

It might be a bit late, but it seems that you are missing some 'jar' dependencies. 它可能有点晚了,但似乎你缺少一些'jar'依赖。

In the 'JPos Sample Application' folder of the Motorola Scanner SDK, check the 'JPosTest.bat' file, it lists all the needed dependencies (by defining some classpaths). 在Motorola Scanner SDK的“JPos Sample Application”文件夹中,检查“JPosTest.bat”文件,它列出了所有需要的依赖项(通过定义一些类路径)。 You will also need to define the 'java.library.path' property to point to the directory containing the CSJPOS.dll (it is also done in the bat launcher). 您还需要定义'java.library.path'属性以指向包含CSJPOS.dll的目录(它也在bat启动器中完成)。

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

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