Search code examples
javaandroideclipsejreddit

How do I add this jReddit library/API to my eclipse project?


I'm trying to add jReddit (https://github.com/jReddit/jReddit) to my project as a library but I don't know how. There's no setup tutorial on the ReadMe of the GitHub page and I have no git experience. How do you add this to a java project in Eclipse? Thank you!

EDIT: Posting this edit so that people in the future can know the solution to this question. All you have to do is download the jReddit jar from the Maven link Anubian Noob posted below. Once you have done that you also have to download the two other jars the jReddit jar depends on, and those are the junit jar and the json-simple jar.


Solution

  • The easiest way to do this would be to download the Jar.

    First, you need to download the jar. Go to the Maven Repository website and click "Download (JAR)."

    Now, go to Eclipse. Right click on your project, click properties (or Alt-Enter), go to Java Build Path -> Libraries -> Add External JARs. Add the JAR you downloaded. Now you can start using jReddit!

    What Maven is from the Maven site:

    Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.