Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Setting up Eclipse

Alex edited this page Dec 17, 2015 · 2 revisions

Create a standard Android project within Eclipse. After the project is created download the jars for the droitatedDB API and the droitatedDB processor from the Download section.

Now you should create a new directory within your project, that will contain the droitatedDB processor jar, as compile time library. Copy the jar into the newly created directory. The droitatedDB API jar has to be placed into the libs directory, because it is needed during runtime.

If you are done copying the jars to the correct location, open the project properties. Navigate to Java compilerAnnotation Processing. Check the option to Enable project specific settings and after that check Enable annotation processing. You can change the generated source directory if you like, but it is not necessary.

In the Processor options add a new key manifest and specify the path to the AndroidManifest.xml as value.

Open the Annotation Processing menu item and go to Factory Path and Enable project specific settings as well. As a last step for the setup you now have to add the droitatedDB processor jar to the Factory Path. Click Add JARs... and locate the folder were you replaced the jar into. Select the jar and press OK. Apply the changes and you have successfully set up your project to use the droitatedDB for Android.