1

我在 Eclipse Juno 4.2 中为针对 App Engine 1.7.4 和 GWT 2.5.0 创建的项目创建了一个简单的 UiBinder,代码如下所示 -

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'>

  <ui:image field='logo' src='Resources/logo_small.png' />

  <ui:style>
  @sprite .logo_small {
    margin: 15px 0 0 10px;
    gwt-image: 'logo';
    position: absolute;
  }
    .headerContainer {
      padding: 0 11px;
    }
    .welcomeDiv {
      float: right;
      margin-top: 5px;
    }
    .tagLine {
      margin-left: 180px;
      padding-top: 22px;
      font-size: 1.8em;
      font-weight: bold;
    }
  </ui:style>

  <g:HTMLPanel>
    <div class='{style.headerContainer}'>
      <div class='{style.logo_small}' />
      <div>
        <div class="{style.welcomeDiv}">
          <b>Welcome back, foo@bar.com</b>
          -
          <g:Anchor href='javascript:;' ui:field='signOutLink'>Log Out</g:Anchor>
        </div>
        <div class='{style.tagLine}'>Your feeds are belong to us</div>
      </div>
    </div>
  </g:HTMLPanel>
</ui:UiBinder>

但是 Eclipse 上的设计选项卡无法呈现面板并失败并显示以下错误消息 -

was not able to show the GUI. 

Internal Error 

This could be caused by a bug or by a misconfiguration issue, conflict, partial update, etc.

java.lang.NoClassDefFoundError: org/eclipse/wb/internal/core/utils/reflect/ProjectClassLoader
4

0 回答 0