gpt4 book ai didi

eclipse :The project was not built since its build path is incomplete

转载 作者:行者123 更新时间:2023-12-04 20:52:59 26 4
gpt4 key购买 nike

我正在使用 Eclipse IDE。
当我尝试构建应用程序时,它在问题 View 下给了我这个错误

描述

The project was not built since its build path is incomplete. Cannot find the class file for javax.ejb.EJBObject. Fix the build path then try building this project 

类型
Java Problem
The type javax.ejb.EJBObject cannot be resolved. It is indirectly referenced from required .class files

最佳答案

听起来您有一个简单的 Java 项目而不是 Web 项目。您缺少为您的项目提供 EjbObject 的服务器运行时。

尝试通过右键单击“转换为”、“分面项目”来转换项目,然后为您的用例选择适当的 Java EE 配置,或者创建一个具有 Java EE 性质的新项目并将您的代码复制到那里。

关于 eclipse :The project was not built since its build path is incomplete,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8193027/

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