简体   繁体   English

从NETBEANS中的现有文件创建Java Project后,源包将不会出现

[英]Source Packages will not appear after Java Project creation from existing files in NETBEANS

I have downloaded my project from our CVS repo through Netbeans. 我已经通过Netbeans从CVS存储库下载了我的项目。 I've created a "New Project" with those source files. 我已经用这些源文件创建了一个“新项目”。 However, Netbeans will not show the source files in the Project View. 但是,Netbeans不会在项目视图中显示源文件。 It will show the build.xml and a "blank paper" icon (where the sources are assumed to have been). 它将显示build.xml和一个“空白纸张”图标(假定来源已存在)。 I am also getting this error: 我也收到此错误:

"WARNING [org.netbeans.spi.java.project.support.ui.PackageView]: Ignoring source group: org.netbeans.modules.java.freeform.JavaProjectNature$SourceGroupImpl@2060960a with non visible root: ../../../buttercup/src" “警告[org.netbeans.spi.java.project.support.ui.PackageView]:忽略源组:org.netbeans.modules.java.freeform.JavaProjectNature$SourceGroupImpl@2060960a,其根目录不可见:../../ ../buttercup/src”

I can run a build on the project through Netbeans perfectly. 我可以完美地通过Netbeans在项目上运行构建。 But I just cannot see or edit the files. 但是我只是看不到或编辑文件。

It's an old question, but there's no answer and I had the same problem. 这是一个古老的问题,但是没有答案,我也遇到了同样的问题。 The "solution" is: Netbeans behaves this way if your project is located in a folder named "CVS" or in subfolder of such a folder. “解决方案”是:如果您的项目位于名为“ CVS”的文件夹或该文件夹的子文件夹中,则Netbeans会以这种方式运行。 Name your folder different and it should display the sources again. 命名您的文件夹不同,它应该再次显示源。 Why? 为什么? No idea... 不知道...

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

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