我一生都无法让 vaadin 聚合物元素在 GWT 项目中工作。我新增了 Java EE Eclipse Mars,我正在使用 Gwt 2.8.0 SNAPSHOT beta,并从 1 月 11 日起更新了 Jars sonatype ,我已经设置了 -generateJsInteropExports
标记,但仍然收到以下 jsinterop 错误。据我所知,这应该在最新的测试版中得到修复,但它似乎对我不起作用,并且夜间构建没有改变任何东西。有什么想法吗?
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
)
关于java - 无法让聚合物元素在 GWT 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34751638/