问题
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
archiveattribute 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