This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

USB interactivity with Java!!??  RSS feed

 
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
Sheriff
Posts: 15860
80
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: 42970
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!