You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Using org.lcsim with Eclipse

Instead of NetBeans, you can also use the Eclipse IDE to build org.lcsim and write your applications.

Download Eclipse: http://eclipse.org/downloads/index.php

Source Path

You may have to change the source path of the project, otherwise Java may be inclined to look for packages src.org.lcsim.* instead of org.lcsim.*. This can be done by right-clicking on the project and selecting Properties->Java Build Path. The src/ folder should be selected as the only source folder.

External Dependencies

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 extensions and libs as well as in $HOME/.JAS3/extensions

LCSim with Europa

Maven 2 is well-supported by Europa with the Q for Eclipse plugin.

I assume you have a directory containing the org.lcsim Java project and command-line Maven 2 installed.

  1. Get an appropriate Eclipse Europa build. (I am using Eclipse 3.3.1.1 on OSX with Java 1.5.)
  2. Go to Help -> Software Updates -> Look for new features to install. Click Next.
  3. Click New Remote Site.
  4. Put q4e in the name and use this URL:
    http://q4e.googlecode.com/svn/trunk/updatesite/
    .
  5. Click through the rest of the q4e install (should be pretty brainless).
  6. Select File -> New -> Java Project.
  7. Name the project "LCSim".
  8. Select create project from existing source and locate an existing LCSim installation or check one out.
  9. Hit Next a couple times and then Finish.
  10. I usually use command-line Maven 2 here:
    mvn eclipse:eclipse
  11. It might also work to try right-clicking on the LCSim project and selecting Maven 2 -> Execute Goal.
  12. In the command box, put eclipse:eclipse and ok.
  13. Right-click on the LCSim project in the Project Explorer window.
  14. Click Refresh.
  15. Select Maven 2 -> Reload Maven and let Eclipse think.
  16. Now select Maven 2 -> Enable Maven dependency management.

All the nasty red errors should go away in your source code window, and command completion should work.

  • No labels