Java小程序在Windows和Linux USB访问 [英] Java applet with usb access in Windows and Linux
本文介绍了Java小程序在Windows和Linux USB访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在开发一种具有USB连接的小工具,但不会强迫我们的用户安装在他们的计算机上的任何驱动程序和程序,所以...¿有可能开发一个Java小程序在Linux和Windows工作有USB访问?
(我们的Java开发人员,但nerver与applet工作之前)
We're developing a kind of gadget with usb connection but would not to force our users to install any driver and program in their computers, so... ¿it's possible to develop a java applet that work in linux and windows and have usb access? (We're java developers but nerver before worked with applets)
推荐答案
我猜你已经选择了一个USB API。 这是一个选项。你必须采取以使它作为一个小程序的工作步骤是:
I guess you have chosen a USB API. This is one option. The steps you have to take in order to make it work as an applet are:
- 数字签名的小程序 - 它需要的权限来使用USB API
- 把USB API的.jar文件的文件夹中的Web服务器上,包括在小程序标记(S)的
归档
属性。 <一href=\"http://stackoverflow.com/questions/1965537/trying-to-get-a-signed-applet-to-work-in-a-browser-but-fails-miserably/1965614\">See我的回答对细节这个问题。
- digitally sign the applet - it would require permissions to use the USB API
- put the .jar file of the usb api in a folder on your web server and include it in the
archive
attribute of the applet tag(s). See my answer to this question for details.
这篇关于Java小程序在Windows和Linux USB访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文