Skip to content

Development environment

Régis Décamps edited this page Sep 25, 2018 · 7 revisions

General prerequisites

  • JDK 7
  • git
  • internet connection

How to develop with IntelliJ IDEA

Prerequisite:

  • Maven plugin
  1. File > Project from Version Control > Git
  2. Enter Git repository URL: https://github.com/jflex-de/jflex.git
  3. Run action Reimport All Maven Projects

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-11b.jar