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

Problem when using different versions of Java (eclipse vs. mvn-command) #117

Open
oldschoolBavarianReferenceSystem opened this issue Jan 13, 2016 · 2 comments

Comments

@oldschoolBavarianReferenceSystem

Do you think the following mistake is worth to be mentioned in a developer-FAQ?

After mvn eclipse:eclipse I got the following error:

Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project 'shogun2-dao' 

Solution

Use the same Java-version for Eclipse and for executing mvn eclipse:eclipse.
If they differ, you can set the version manually on the command line like:

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/ mvn eclipse:clean eclipse:eclipse
@marcjansen
Copy link
Member

Yes please! A PR with such a doc change would be appreciated.

@buehner
Copy link
Member

buehner commented Jan 14, 2016

The doc is a bit outdated. I suggest to use Eclipse with the m2e plugin (in latest version) instead of mvn eclipse:eclipse. After a clone of the SHOGun2 repo, you can easily use the "Import existing Maven project" functionality of eclipse/m2e. This has some advantages, for example that dependencies can be resolved within the eclipse workspace.

I will expand the documentation regarding this!

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