Java POS 开发入门 [英] Getting started with Java POS development

查看:88
本文介绍了Java POS 开发入门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从 Java Swing 应用程序连接到 POS 打印机.我开始知道有一个叫做 Java POS 的标准来实现这一点.

I have a requirement where I need to connect to a POS printer from a Java Swing App. What I came to know that there's a standard called Java POS to achieve this.

现在问题出在 java POS 网站 (http://www.javapos.com/) 我没有找到任何有助于让我开始.

Now the problem is on java POS website (http://www.javapos.com/) I did not find anything that is helpful in getting me started.

我检查了 Java POS 模拟器 (https://code.google.com/p/pos-device-simulator) 但问题是,即使我成功启动,我也不知道该怎么做,如何针对这些模拟器测试任何代码.

I checked Java POS simulators (https://code.google.com/p/pos-device-simulator) but the thing is, even if I start that successfully I get no clue what to do, how to test any code against these simulators.

有人可以指导我朝着正确的方向前进吗?我从哪里开始探索使用 Java POS 连接到 POS 打印机然后成功打印一些数据?

Can someone guide me in the right direction? Where to begin my quest about using Java POS connect to a POS Printer and then print some data successfully?

推荐答案

我刚刚开始了同样的探索,我认为最好的方法是从知名供应商(例如 Epson 或星微电子.他们通常会提供足够的文档来开始整个过程​​.设备模拟器太复杂了,在我看来似乎有点问题.

I just started on the same quest and I think that the best way to do is to grab yourself a receipt printer from a well-known vendor such as Epson or Star Micronics. They normally provide enough documentation on to get started on the whole process. The device simulator is too complex and seems to be a bit buggy in my opinion.

假设您设法为自己购买了一台打印机,您需要执行以下操作:

Assuming that you managed to get yourself a printer, here's you'll need to do:

  1. 生成包含设备特定信息的 jpos.xml.供应商应该有一个程序可以为您生成这些信息.
  2. 修改 $jpos.jar/jpos/res 下的 jpos.properties 以将其指向您的 jpos.xml 的位置.注意:您的供应商工具可能会自动为您执行此操作.
  3. 添加所有必要的库
  4. 从供应商提供的示例代码开始

有些不完整的 JavaPOS 文档可以在位于 http://www.nrf-arts.org/content/unifiedpos此外,我发现的最新 JavaPOS 编程指南是 这里.

The somewhat incomplete documentation of JavaPOS can be found as part of the UPOS documentation in Appendix B located at http://www.nrf-arts.org/content/unifiedpos Also, the latest programming guide on JavaPOS that I found is here.

希望这会有所帮助.

这篇关于Java POS 开发入门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆