|Escape tutorial Plug-in dependency issues [message #691203]
||Thu, 30 June 2011 23:45
| Jonathan Gilligan
Registered: June 2011
This is a beginner's question. I'm probably doing something very wrong, but I can't figure out what. I'm fairly new to the Eclipse environment and it's been a number of years since I've used Java, although I've got many years of heavy C and C++ experience (probably dangerous since it can lead me to make bad assumptions). If someone can help me figure out what I'm doing wrong, I'd be grateful.|
I have a clean install of Eclipse Indigo 3.7 (the bare bones Eclipse SDK version) under JRE 1.6.0_26 and 64-bit Windows 7. After I unzipped eclipse, I only installed the "AMP All in One SDK" package (version 0.9.0.v20110610-0008, without the 3D stuff) from the download.eclipse.org/releases/indigo update feed (and restarted eclipse after the install).
I try working through the tutorial that comes with the AMP SDK, for building an Eclipse Java model in the Escape perspective (starting with the first version of the CollaborationGame project) and Eclipse doesn't seem to get the plug-in dependencies right and it keeps giving me error message after error message about not being able to find things on the build path:
First, all of the import statements for org.ascape.* give errors such as "the import org.ascape.model.Scape cannot be resolved." and offering me the quick fix to import the package into my project. I need to do this one at a time for every Ascape or Escape package that I want to import. Is there a faster way to do this? Or is there something I should have done to manually configure Eclipse to get it to figure these things out for itself?
Next, once I get all the import statements correct, Eclipse starts reporting errors that various classes in the Ascape/Escape libraries can't find other classes they depend on: the compiler can't build the project because the build path is incomplete and it can't find class org.ascape.vis.view.ChartView and or resolve type org.eclipse.jface.viewers.ISelectionProvider, which is needed to compile the call to lattice.addView(overheadView) in CoordinationGame.createGraphicViews().
I keep manually adding appropriate jar files from my eclipse/plugins directory to the build path, but all I get is new complaints about the build path. I think the problem is that somehow there's some step I don't know about to get Eclipse to correctly set the plug-in dependencies when I'm creating a new Escape Java project.
What am I doing wrong here? I previously worked with the straight Ascape framework, building models as regular Java programs under Eclipse and had no problem getting them to compile and run. I can also successfully build the AMP Escape StupidModel1 project from the AMP 0.7.0 Agent Modeling Guide under the same Eclipse installation that's giving me so much trouble with the Java Escape project.
Powered by FUDForum
. Page generated in 0.01840 seconds