Java applet with usb access in Windows and Linux

删除回忆录丶 提交于 2019-12-11 05:28:44

问题


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)


回答1:


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:

  • 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.



回答2:


Does your app's interface need to be embedded in a web page? If not, you might want to look into Java Web Start, which lets you run Java Applications by clicking on a link in a browser.



来源:https://stackoverflow.com/questions/2093707/java-applet-with-usb-access-in-windows-and-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!