我下面的代码,其蚀给出以下编译错误:

Multiple markers at this line
- The hierarchy of the type TutorialsApplication is inconsistent
- The type com.vaadin.terminal.Terminal$ErrorListener cannot be resolved. It is indirectly referenced 
 from required .class files
- The type com.vaadin.terminal.URIHandler cannot be resolved. It is indirectly referenced from 
 required .class files

和我的代码是:

package com.example.tutorials;

import com.example.component.Window.HomeWindow;
import com.vaadin.Application;

@SuppressWarnings("serial")
public class TutorialsApplication extends Application {
    // @Override
    public void init() {
        HomeWindow main = new HomeWindow("Welcome to FunFusion Content Management System");
        setMainWindow(main);
        main.initWindow();
    }
}
有帮助吗?

解决方案

这意味着,vaadin库,不管它可能是依赖于一些第三方JAR文件或文件,当您编译和运行应用程序必须存在于你的CLASSPATH,但是你错过了这。

其他提示

也许你有包含在你的应用程序是不一样的,你使用的是Vaadin Eclipse插件的版本,Vaadin JAR的版本。 尝试更新两者。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top