gpt4 book ai didi

java - GWT从2.7.0升级。 2.8.2(或2.8.1)不工作

转载 作者:行者123 更新时间:2023-11-30 02:00:38 28 4
gpt4 key购买 nike

我正在尝试将使用 Google 应用引擎和 GWT 的 Eclipse(Mars 2、Mac)项目升级到 gwt 版本 2.8.2,但出现以下错误:

Exception in thread "main" java.lang.NoSuchMethodError: com.google.gwt.util.regexfilter.RegexFilter: method <init>()V not found
at com.google.gwt.util.regexfilter.WhitelistRegexFilter.<init>(WhitelistRegexFilter.java:21)
at com.google.gwt.dev.jjs.JJSOptionsImpl.<init>(JJSOptionsImpl.java:54)
at com.google.gwt.dev.PrecompileTaskOptionsImpl.<init>(PrecompileTaskOptionsImpl.java:39)
at com.google.gwt.dev.CompilerOptionsImpl.<init>(CompilerOptionsImpl.java:30)
at com.google.gwt.dev.Compiler.main(Compiler.java:108)

我找到了将 java 编译器级别和 java 方面设置为 1.8 的解决方案,但它不起作用。

也在我的类路径中:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 8 [1.8.0_172]">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>

最佳答案

该错误可能是混合不同版本的 GWT 的症状。在从 2.7 升级到 2.8 的过程中,您的路径上可能有多个版本的 GWT jar?

关于java - GWT从2.7.0升级。 2.8.2(或2.8.1)不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52966522/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com