LearnLib / learnlib

A free, open-source Java library for automata learning algorithms

Home Page:https://learnlib.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile in Eclipse

nadiamov opened this issue · comments

commented

Hi,

I am trying to run the examples of the last distribution version of Learnlib 0.12.0 and the classes which refer to "ExtensibleLStarDFABuilder", "DTLearnerMealyBuilder" etc.. can not be found. Do you know what could be the issue?

Thank you a lot in advance,
Nadia

Do you have installed a maven plugin in eclipse or a maven installation on the system and called mvn eclipse:eclipse on the command line and then imported the project to eclipse?

commented

Yes, I have Eclipse Luna, which has already preinstalled the maven plugin. I import the distribution of Learnlib as "an existing maven" and when I try to run one of the examples, I get this errors as you can see at the screenshot.
screen shot 2015-07-15 at 21 48 50
screen shot 2015-07-15 at 21 53 01

Unfortunately, usage of the Maven Eclipse plugin results in build which differ from Maven. In your case, the problem is that Eclipse expects annotation processors to be manually enabled, instead of just loading all available ones that can be found on the build classpath (as javac or mvn would do). To close this gap between Eclipse and Maven, you need the m2e-apt plugin for Eclipse. After installing, make sure to configure it correctly by going to Preferences > Maven > Annotation Processing, and select "Automatically configure JDT annotation processing" (or something like that, cannot look it up right now). A full rebuild may be required, but the problem should disappear.

commented

Thank you so much! Everything works now :)