简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM