Can't figure out how to compile ionic background service in Eclipse

Hi all,

I am trying to build a background service for my ionic app as per this tutorial here:

Now the problem is I can’t seem to be able compile the java part. It seems that the module cordova is not available. I’ve looked through the entire platform folder and still cant find any cordova.jar file. Am i barking up the wrong tree? Is there a guide to compile this correctly?

Thanks in advance.