gpt4 book ai didi

java - java程序的eclipse IDE中的编译错误

转载 作者:行者123 更新时间:2023-11-30 06:38:27 25 4
gpt4 key购买 nike

我有以下代码,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 中,但您却遗漏了这些文件。

关于java - java程序的eclipse IDE中的编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2239373/

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