• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching for imports  RSS feed

 
Jeremy Hutto
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • 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
  • 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: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a java programming question?

Or is this a question about how to setup your eclipse IDE?
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!