Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.7.0 or higher on the project's classpath.

553 views
Skip to first unread message

Dzianis Sokal

unread,
Oct 26, 2014, 12:26:52 PM10/26/14
to ope...@googlegroups.com
Hi,

Im trying to setup My Eclipse to compile Openhab. I used wiki for reference. So here is what I have:
  • Ubuntu 14.04
  • Eclipse Luna 4.4.1
  • Have following components installed:
    • XText Complete SDK 2.7.2
    • MWE SDK 1.3.4
    • MWE 2 Runtime SDK 2.7.0
    • MWE 2 Language SDK 2.7.0
    • Yoxos Install Manager 5.2.0
    • Yoxos Preference Provisioning 5.0.0
    • Yoxos Project Provisioning 5.0.0
    • Yoxos Target Provisioning 5.0.0
    • Eclipse Project SDK 4.4.0
    • Eclipse IDE for Java developers 4.4.1
  • Used this update site, but followed default compatibility suggestions.
  • Some projects do not compile (o.o.m.rule, o.o.m.persistence, o.o.m.script, o.o.b.urtsi) , because of
    • Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.7.0 or higher on the project's classpath.
  • Have few other compilation issues...
  • Going to the Project Preferences -> Java Build Path -> Libraries -> Plugin Dependencies, I see there is a lib 'org.eclipse.xtext.xbase.lib' 2.3.0

Any hint on what I miss to have proper version of 'org.eclipse.xtext.xbase.lib' (2.7.0 instead of 2.3.0)?

Gernot Eger

unread,
Oct 27, 2014, 8:27:08 AM10/27/14
to ope...@googlegroups.com
It seems to me that there is an incompatibility with  the xtext plugin and the used xtext versions referenced in the pom.xml's which reference 2.3.0. Version xtext 2.40 seems to be an alternative, which is both installable on Luna (2.5.0 up are not) and not too fresh for xtend/xtext.

Markus Rathgeb

unread,
Nov 5, 2014, 7:56:14 AM11/5/14
to ope...@googlegroups.com
It seems that the Xtend / Xtext will not be updated for OH1: https://groups.google.com/d/msg/openhab/UGeDbnX1pnQ/m6pa7nbsEN4J

t.sc...@md-network.de

unread,
Nov 23, 2014, 12:33:59 PM11/23/14
to ope...@googlegroups.com
Hello,
I was following advises to set up the development environment from the Wiki.

Env:
  • Mac OS X 10.9.5
  • Eclipse Luna 4.4.1
  • jdk1.7.0_71
But whatever I do some projects stay in "problem state" between a couple of other xtend messages I find as well the message

Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.7.0 or higher on the project's classpath. PersistenceGenerator.xtend /org.openhab.model.persistence/src/org/openhab/model/persistence/generator line: 4 /org.openhab.model.persistence/src/org/openhab/model/persistence/generator/PersistenceGenerator.xtend Xtend Problem

seen in the first eMailing of this thread. 
in the class path i see jar which is 'org.eclipse.xtext.xbase.lib_2.3.0...'

Is there any way out of that ? 
Would be nice ...

Many Thanks
Kind Regards
Thomas Schmidt

PS.: this toolchain is a nightmare ... ;-)

 

Markus Rathgeb

unread,
Nov 23, 2014, 5:01:25 PM11/23/14
to ope...@googlegroups.com
Is this not already answered by Gernot Eger?
If you would like to use Luna, there is nothung you can do.
You can try to bump the versions OH1 is using, but as already stated this will perhaps never be applied upstream.
There is a Wiki entry how to set up the IDE for OH1 and that is not using luna.
Reply all
Reply to author
Forward
0 new messages