The IResource class IResource not in your class path when the application starts.
If you are not using Eclipse (or some other tool) for dependency management, you will need to track each jar file that the abstract syntax tree classes need and manually include them in your classpath. I'm not sure how much this can be, but Eclipse consists of dozens of plugins, and manual work on build dependencies will be a daunting task.
Edit: To add IResorce to the classpath, the specific jar file you are looking for will be named something like org.eclipse.core.resources_3.5.0.v20090512.jar , depending on your version of Eclipse. But I do not think that this will be the only one that you will need ...
source share