简体   繁体   English

在独立Java项目中验证Xtext DSL时出错

[英]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 ) 我最近遵循了塞巴斯蒂安·扎纳科夫(Sebastian Zarnekow)关于如何将Xtext DSL部署到一个独立项目中的简短指南(可在此处找到: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" “找不到字符串资源'_UI_DiagnosticRoot_diagnostic'”

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. 这可能与JAR的导出方式有关,我选择了“将所需的库提取到生成的JAR中”选项,如果我尝试使用将库打包到JAR中的第二个选项,则会收到另一个错误消息,告诉我找不到主要方法。

Has anyone come across this issue before? 有人遇到过这个问题吗? I tried updating EMF and Xtext but it didn't seem to have any affect. 我尝试更新EMF和Xtext,但似乎没有任何影响。

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. 问题是jar的根目录中存在多个plugin.properties,它们可能会相互覆盖。 seems one from the org.eclipse.emf.ecore is going lost. 似乎org.eclipse.emf.ecore中的一个丢失了。

so you may create a plugin.properties that contains this (and maybe other keys) as well. 因此,您可能会创建一个包含该(以及其他键)的plugin.properties。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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