Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile in Eclipse #32

Closed
nadiamov opened this issue Jul 15, 2015 · 4 comments
Closed

Compile in Eclipse #32

nadiamov opened this issue Jul 15, 2015 · 4 comments

Comments

@nadiamov
Copy link

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

@juangamnik
Copy link
Contributor

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?

@nadiamov
Copy link
Author

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

@misberner
Copy link
Contributor

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.

@nadiamov
Copy link
Author

Thank you so much! Everything works now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants