当前位置: 动力学知识库 > 问答 > 编程问答 >

Error when validating Xtext DSL in standalone Java project

问题描述:

I recently followed Sebastian Zarnekow's short guide on how to deploy an Xtext DSL into a standalone project (found here: http://zarnekow.blogspot.co.uk/2010/06/how-to-deploy-xtext-standalone.html)

However I receive the following error when attempting to run the project...

"The string resource '_UI_DiagnosticRoot_diagnostic' could not be located"

Could this be something to do with how the JAR is exported, I chose the "Extract required libraries into generated JAR" option, if I try to use the second option where the libraries are packaged into the JAR I receive a different error telling me that a main method could not be found.

Has anyone come across this issue before? I tried updating EMF and Xtext but it didn't seem to have any affect.

Any help is appreciated.

网友答案:

this should be a "warning" only - maybe logged as error but not prevent the program from running. the problem is there a multiple plugin.properties in the root of the jars that may override each other. seems one from the org.eclipse.emf.ecore is going lost.

so you may create a plugin.properties that contains this (and maybe other keys) as well.

分享给朋友:
您可能感兴趣的文章:
随机阅读: