Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Controlling Mouse / Pedal from USB in Multi Platforms  RSS feed

 
Gilbert Donato
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is their a Package or Classes that can detect device from USB ports in different OS (ie Windows,LINUX & UNIX)? And can this be used in JSP? Thanks in Advance. . .
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an open source project on SourceForge called jUSB that looks like it supports java USB access, but it only works on Linux so far. I don't think there is currently a platform-independent USB package, but there is a request for one in the works.

However, the part of your question about JSP confuses me... JSP is used to generate web pages on a server, and send these to a client to be displayed in a web browser. Since the JSP only actually runs on the server, then just sends HTML text to the client, there is no way for the JSP itself to actually control anything on the clients machine, even if there were a way to talk to the USB device. You'll have to use something that runs on the client side, like a regular application, or an aplication that is started through WebStart, or, if you want it to run inside the browser, you'll have to use an Applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!