Skip to content

Development environment

Régis Décamps edited this page Apr 5, 2015 · 7 revisions

General prerequisite

  • JDK 5
  • Maven 3
  • git

How to develop with Eclipse Luna?

Create a workspace

mkdir workspace_jflex

Clone jflex in your workspace

cd workspace_jflex
git clone https://github.com/jflex-de/jflex.git jflex-parent

It's important to

  • Have a jflex in a subdirectory of your workspace, otherwise Eclipse won't be able to load the parent POM
  • Name the cloned directory with a different name than "jflex" otherwise the m2e plugin will get confused between jflex and jflex/jflex

Start Eclipse and import Jflex

  1. Start Eclipse and select workspace_jflex as your workspace.
  2. Select File > Import > Maven > Existing Maven projects.
  3. Select jflex-parent as the root. Confirm with Import.

Import generated sources

  1. Execute Run as > Maven Build
  2. Open Properties for jflex
  3. In Java Build Path
  • select Source tab, Add Folder… and add jflex/target/generated-sources/jflex.
  • select Librairies tab, Add JARs and add jflex/lib/java-cup-11a.jar
Clone this wiki locally