Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jian Huang
Courses Plus Student 1,004 PointsDon't know how to import class objects
I'm using IntelliJ as my Java IDE. I'm trying to import an open source class object to my program.
For example, line "import org.apache.zookeeper.createMode;" doesn't work for me. Do I need to download the binary and put them into my classpath to work?
1 Answer
Rebekah Smith
7,263 PointsCheck out this awesome Gradle workshop, it's for IntelliJ and Java.
Then you can create a dependency in your build file like:
compile group: 'org.apache.zookeeper', name: 'zookeeper', version: '3.4.8'
I think it could work to download some binary and put it in your classpath but it's better to use something like Gradle or Maven.