VSCODE打开Java代码,但可以在状态栏上查找/显示Java版本,Java项目说:当前工作区中没有Java项目

发布于 2025-02-06 18:40:10 字数 836 浏览 0 评论 0原文

所以我正在从大学项目中打开此Java代码-11在其他和左菜单“ Java Projects”上,它只是说它根本没有检测到任何。

无论如何,有点丢失,当我尝试运行时,我会收到此消息:

cmd /c“” C:\ Program Files \ Eclipse Foundation \ JDK-11.0.12.7-HOTSPOT \ bin \ java.exe“ -cp c:\ users \ udse \ pedro \ pedro \ appdata \ roaming \ code \ code \ user \ user \ workspacestorage t_ws \ jdt.ls-java-project \ bin br.pucrs.adt.tests.progs.testalista” 线程“主” Java.lang.error中的例外:未解决的编译问题: listSimplelinkedll无法解决为类型 listDoublinced无法解决为类型
listDoublelinked无法解决为类型 listSimplelinkedll无法解决为类型 listSimplelinkedll无法解决为类型 在br.pucrs.adt.tests.progs.testalista.main(testalista.java:36)上

,当我对此没有问题时,它显示了Java SE-11版本和左侧的“我的项目”: 示例

So I'm opening this Java Code from a College Project but it doesn't detect the Java Language (appears JavaSE-11 on others and on the left menu 'Java Projects', it just says it doesn't detect any at all.

Anyway, kinda lost, when I try to run I get this message:

cmd /C ""C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot\bin\java.exe" -cp C:\Users\pedro\AppData\Roaming\Code\User\workspaceStorage\024a910f1bbcd79a81d5e3f26e0eb2e2\redhat.java\jdt_ws\jdt.ls-java-project\bin br.pucrs.adt.tests.progs.TestaLista "
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
ListSimpleLinkedFull cannot be resolved to a type
ListDoubleLinked cannot be resolved to a type
ListDoubleLinked cannot be resolved to a type
ListSimpleLinkedFull cannot be resolved to a type
ListSimpleLinkedFull cannot be resolved to a type
at br.pucrs.adt.tests.progs.TestaLista.main(TestaLista.java:36)

When in other projects I have no problem with this, it shows the Java SE-11 version and the 'My Projects' on the left: Example

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文