简体   繁体   English

无法打开 Netbeans 中的某些.java 文件

[英]Can't open certain .java files in Netbeans

I am using Netbeans 11.1.我正在使用 Netbeans 11.1。 I just noticed that if I try to open a past project in Netbeans, sometimes it will open, but other projects won't open.我刚刚注意到如果我尝试在Netbeans中打开一个过去的项目,有时它会打开,但其他项目不会打开。 If I go into the src folder through Netbeans, the src folder is empty.如果我go通过Netbeans进入src文件夹,src文件夹是空的。 But if I go find the file on my hard drive the src file contains the code.但是,如果我 go 在我的硬盘驱动器上找到该文件,则 src 文件包含代码。 However, when I try to open it it just won't open.但是,当我尝试打开它时,它就是无法打开。 I don't understand what's going on.我不明白发生了什么事。

In the projects section where your projects are, right-click on your projects that aren't opening and and select "Convert to J2SE Project'.在项目所在的项目部分,右键单击未打开的项目和 select“转换为 J2SE 项目”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM