As I understand it, when using an AndEngine project from another project, one should add it as a library, but I cannot get this to work. For example, I want to use the Andengine-PhysicsEditor-Extension. I have an Andengine-PhysicsEditor-Extension project in Eclipse, then in the other project, I go to:
- Project Properties, Java Build Path, Libaries, Add Library...
- Android Classpath Container
- Next>
- Select Project Andengine-PhysicsEditor-Extension
- Finish
So now the project compiles correctly, for example this line compiles:
final PhysicsEditorLoader loader = new PhysicsEditorLoader();
However, I get a run time error on that line:
java.lang.NoClassDefFoundError: org.andlabs.andengine.extension.physicsloader.PhysicsEditorLoader
What else do I need to get this to work?
One thing that I don't understand is that the directory in the AndEngine-PhysicsEditor-Extension project: \AndEngine-PhysicsEditor-Extension\bin\classes\org\andlabs\andengine\extension\physicsloader is empty. Perhaps it should have class files?