• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

USB interactivity with Java!!??

 
Nacho Hmar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey...
I'd like to know if it is possible to interact with external devices connected to a USB port...like acknowledge a connection(say for a webcam) and then use some interfaces to view the webcam.

Please help me out here...Thanks.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15448
42
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are libraries like jUSB which you can use to communicate with USB devices from Java. However, using a webcam involves much more than just connecting to it over USB.

If you specifically want to use a webcam from Java, search for "java webcam" or similar terms on Google. Maybe something like jGrabber is useful?
[ October 01, 2007: Message edited by: Jesper Young ]
 
Nacho Hmar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn\'t java sdk\'s come with those kind of libraries for controlling the usb\'s?? I think its really essential that those kind of libraries are bundled with sdk\'s, especially at this age where we can connect almost any devices through a usb port...Don\'t you think??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it needs to be in the JDK. If libraries like the one Jesper mentioned are available, and can be shipped with an application that needs it, that should be sufficient. IMO, way too many APIs are part of the JDK already, and I don't see many Java applications that might use USB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic