...
Note | ||
---|---|---|
| ||
When working with external libraries such as org.lcsim, you have to add those libraries to the build path. This can be done by right-clicking on the project and selecting "Properties->Java Build Path->External Libraries". Select add external jar and choose the Jars from your JAS3 installation path. They are in the subdirectories |
LCSim with Europa
Maven 2 is well-supported by Europa with the Q for Eclipse plugin.
...
- Checkout GeomConverter and org.lcsim.
- In each project directory, execute this (Unix/Linux) command.
.No Format ln -s pom2.xml pom.xml
- Build GeomConverter, first, and then org.lcsim with the
command.No Format mvn
- If it complains about missing lcsim-base, then checkout this project from SLAC CVS and build it, too.
- Get an appropriate Eclipse Europa build. (I am using Eclipse 3.3.1.1 on OSX with Java 1.5.)
- Unpack and install the Eclipse build and open Eclipse by double-clicking on its icon. (In OSX, this is eclipse.app.)
- Go to Help -> Software Updates -> Look for new features to install. Click Next.
- Click New Remote Site.
- Put q4e in the name and use this URL:
.No Format http://q4e.googlecode.com/svn/trunk/updatesite/
- Click through the rest of the q4e install (should be pretty brainless).
- Select File -> New -> Java Project.
- Name the project "LCSim".
- Select create project from existing source and locate an existing LCSim installation or check one outselect your org.lcsim directory.
- Hit Next a couple times and then Finish.
- I usually use command-line Maven 2 here:
No Format mvn eclipse:eclipse
- It might also work to try right-clicking on the LCSim project and selecting Maven 2 -> Execute Goal. In the command box, put eclipse:eclipse and ok.
- Right-click on the LCSim project in the Project Explorer window .Click and click Refresh.
- Select Maven 2 -> Reload Maven and let Eclipse think.
- Now select Maven 2 -> Enable Maven dependency management.
All If the last step executes successfully, then all the nasty red errors should go away in your source code window, and command completion should work.