This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes USB interactivity with Java!!?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "USB interactivity with Java!!??" Watch "USB interactivity with Java!!??" New topic
Author

USB interactivity with Java!!??

Nacho Hmar
Greenhorn

Joined: Oct 01, 2007
Posts: 5
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

Joined: Aug 16, 2005
Posts: 14074
    
  16

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 ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Nacho Hmar
Greenhorn

Joined: Oct 01, 2007
Posts: 5
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
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: USB interactivity with Java!!??
 
Similar Threads
How to upload webcam images from servlets to web server
I want to pick pictures from a webcam
Scan a document using java
Running Linux/Solaris
Can some one help me....