Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.4.0 or higher on the project's c [message #1118338] |
Fri, 27 September 2013 10:00 |
Jos Warmer Messages: 114 Registered: October 2010 |
Senior Member |
|
|
We are using Xtext 2.4.0 under Juno with JDK 1.6. We have been working on Windows for a while, and now tried to inst all an IDE on a Mac. To our surprise we get an error message:
Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.4.0 or higher on the project's classpath. The project is identical to that on Windows, and both use Xtend 2.4.0. The xbase.lib package is imported in the MANIFEST.MF, and exists in the plugin dependencies.
By the way, I checked the code that gives the validation error in XtendJavaValidator.java
@Check
public void checkClassPath(XtendFile xtendFile) {
TypeReferences typeReferences = getServices().getTypeReferences();
final JvmGenericType listType = (JvmGenericType) typeReferences.findDeclaredType(List.class, xtendFile);
if (listType == null || listType.getTypeParameters().isEmpty()) {
error("Couldn't find a JDK 1.5 or higher on the project's classpath.", xtendFile, XTEND_FILE__PACKAGE,
IssueCodes.JDK_NOT_ON_CLASSPATH);
} else if (typeReferences.findDeclaredType(Extension.class, xtendFile) == null) {
error("Couldn't find the mandatory library 'org.eclipse.xtext.xbase.lib' 2.4.0 or higher on the project's classpath.",
xtendFile, XTEND_FILE__PACKAGE, IssueCodes.XBASE_LIB_NOT_ON_CLASSPATH);
}
}
I don't quite understand this code. It looks for a class named Extension, which is not in xbase.lib, and gives an error message when this class cannot be found. I did check this Extension class, and there is such a class on the classpath in the requiredPlugins.
I am wondering why this works on Windows, but not on a Mac. Anyone got this error before?
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05037 seconds