Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/348.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何将项目从GWT2.5.1升级到GWT2.7.0?_Java_Maven_Gwt - Fatal编程技术网

Java 如何将项目从GWT2.5.1升级到GWT2.7.0?

Java 如何将项目从GWT2.5.1升级到GWT2.7.0?,java,maven,gwt,Java,Maven,Gwt,我现在正在使用GWT2.5.1,我想将我的SDK版本更改为2.7.0。我手动下载了最新的SDK,并在project属性中更改了SDK设置。编译器此时抛出的错误是: ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project citikyc-core-app-web-common: Compilation failure

我现在正在使用GWT2.5.1,我想将我的SDK版本更改为2.7.0。我手动下载了最新的SDK,并在project属性中更改了SDK设置。编译器此时抛出的错误是:

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project citikyc-core-app-web-common: Compilation failure: Compilation failure:
[ERROR] \_ws\core-modules\core-app-modules\citikyc-core-app-web-common\src\main\java\com\citi\kyc\core\app\web\common\kycrecord\bussinessappx\client\widget\AddBusinessAppndxEditor.java:[30,35] package com.google.gwt.widget.client does not exist
[ERROR] \_ws\core-modules\core-app-modules\citikyc-core-app-web-common\src\main\java\com\citi\kyc\core\app\web\common\kycrecord\bussinessappx\client\widget\AddBusinessAppndxEditor.java:[47,12] cannot find symbol
[ERROR] symbol  : class TextButton
[ERROR] location: class com.citi.kyc.core.app.web.common.kycrecord.bussinessappx.client.widget.AddBusinessAppndxEditor
[ERROR] \_ws\core-modules\core-app-modules\citikyc-core-app-web-common\src\main\java\com\citi\kyc\core\app\web\common\kycrecord\bussinessappx\client\widget\AddBusinessAppndxEditor.java:[84,25] cannot find symbol
[ERROR] symbol  : class TextButton
[ERROR] location: class com.citi.kyc.core.app.web.common.kycrecord.bussinessappx.client.widget.AddBusinessAppndxEditor
[ERROR] \_ws\core-modules\core-app-modules\citikyc-core-app-web-common\src\main\java\com\citi\kyc\core\app\web\common\admin\riskmodel\client\widget\ManageResponseEditor.java:[152,33] cannot find symbol
[ERROR] symbol  : constructor TreeItem(java.lang.String)
[ERROR] location: class com.google.gwt.user.client.ui.TreeItem
[ERROR] \_ws\core-modules\core-app-modules\citikyc-core-app-web-common\src\main\java\com\citi\kyc\core\app\web\common\admin\riskmodel\client\widget\ManageResponseEditor.java:[162,33] cannot find symbol
[ERROR] symbol  : constructor TreeItem(java.lang.String)
[ERROR] location: class com.google.gwt.user.client.ui.TreeItem
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project citikyc-core-app-web-common: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

跟踪的第二行指向一个TextButton类对象声明,该声明根据gwt 2.5.1包结构从com.google.gwt.widget.client包导入。但是我在GWT2.7.0中找不到任何类似的类。我如何解决这个问题

用Button类替换TextButton用法。它有一个构造函数,可以将字符串或安全HTML显示为文本。如果愿意,以后可以对其应用不同的样式

/**
   * Creates a button with the given HTML caption.
   *
   * @param html the HTML caption
   */
  public Button(SafeHtml html) {
    this(html.asString());
  }

  /**
   * Creates a button with the given HTML caption.
   *
   * @param html the HTML caption
   */
  public Button(String html) {
    this();
    setHTML(html);
  }