• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

USB interactivity with Java!!??

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic