簡體   English   中英

Eclipse IDE中針對Java程序的編譯錯誤

[英]compilation error in eclipse IDE for a java program

我有以下代碼,Eclipse會產生以下編譯錯誤:

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 JAR版本與您使用的Vaadin Eclipse插件版本不同。 嘗試同時更新兩者。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM