dsiegler19
dsiegler19

Reputation: 499

How to import Github projects into Netbeans

Currently I would like to use this GitHub repository- https://github.com/sarxos/webcam-capture

How do I import this code into Netbeans or start a new project so that I don't get all of these dependency errors (i.e. log4j, google code, etc.). Basically, how do I get to the point where I can make the "Hello World" project on the page's readme (I don't need to know how to use it just rather how to import it). Also, would these steps be specific to just this project or should it work just fine for all GitHub repositories.

Upvotes: 4

Views: 8464

Answers (1)

Kyle Anderson
Kyle Anderson

Reputation: 7031

Since the GitHub repository you're referencing is a Maven project, you'll need to open it as such within NetBeans.

Follow these instructions (with screenshots) here

The key to this process is pointing NetBeans to the pom.xml file which existing in the root of the GitHub repo. Then it'll download all the dependencies automatically.

Upvotes: 5

Related Questions