我一生都无法在GWT项目中使用vaadin聚合物元素。我新增了Java EE Eclipse Mars,正在使用Gwt 2.8.0 SNAPSHOT beta,并从1月11日起更新了sonatype的Jars,并设置了-generateJsInteropExports
标记,但我仍然收到以下jsinterop错误。据我所知,这个问题应该已经在最新的Beta中得到了解决,但似乎对我而言并不起作用,而且夜间版本也没有任何改变。有任何想法吗?
Super Dev Mode starting up
workDir: C:\Users\John\AppData\Local\Temp\gwt-codeserver- 700489888360387855.tmp
Loading inherited module 'com.test.Gwttest'
Loading inherited module 'com.google.gwt.core.Core'
Loading inherited module 'jsinterop.annotations.Annotations'
[ERROR] Unable to find 'jsinterop/annotations/Annotations.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
最佳答案
您还需要jsinterop-annotations
JAR和源JAR。从https://oss.sonatype.org/content/repositories/google-snapshots/com/google/jsinterop/jsinterop-annotations/1.0.0-SNAPSHOT/下载(以.jar
和-sources.jar
结尾的文件,例如jsinterop-annotations-1.0.0-20160111.054530-32.jar
和jsinterop-annotations-1.0.0-20160111.054530-32-sources.jar
)