• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Searching for imports

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the best way to go about searching for imports?
I want to find imports so I can try to  make a program that takes a screen shot with my webcam, but all of the google results don't work.
 
Jeremy Hutto
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just updating, I found this https://github.com/sarxos/webcam-capture/blob/master/README.md
and now I realize I have to get it on eclipse somehow
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

searching for imports


Are you asking about where to find packages and classes written in java that do a specific job?   The common way is to do a search on the internet.

Once the package/classes are found, they need to be placed on the classpath so the compiler can find them.
 
Jeremy Hutto
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well I thought that the import com.github.sarxos.webcam.Webcam; wasn't working at first, but then I realized I have to get it on eclipse.
trying to figure that out atm
 
Norm Radder
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a java programming question?

Or is this a question about how to setup your eclipse IDE?
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeremy Hutto wrote:well I thought that the import com.github.sarxos.webcam.Webcam; wasn't working at first, but then I realized I have to get it on eclipse.
trying to figure that out atm



It varies from version to version, but basically (on my copy) ... right click on the project --> properties --> Java build path --> libraries --> add external jar file. Once the jar file is added, then the import should resolve correctly.

Henry
 
Jeremy Hutto
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Norm Radder wrote:Do you have a java programming question?

Or is this a question about how to setup your eclipse IDE?


should I have posted this in a different thread?
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeremy Hutto wrote:. . . should I have posted this in a different thread?

No. Somebody has already duplicated this discussion in the IDEs forum, so there is no need for you to do anything.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic