Java 安装 jRebel 插件后,源文件夹在 Netbeans 项目中不可见?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18869423/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
source folders not visible in Netbeans project after installing jRebel plugin?
提问by seinecle
I installed jRebel on Netbeans 7.4 beta one day, the next day all my source folders an libraries to disappeared from my projects - except Maven ones. Like this:
一天我在 Netbeans 7.4 beta 上安装了 jRebel,第二天我所有的源文件夹和库从我的项目中消失了 - 除了 Maven 的。像这样:
The source folders are still present on my drive:
源文件夹仍然存在于我的驱动器上:
I just need to restore their visibility in my opened Netbeans projects.
我只需要在我打开的 Netbeans 项目中恢复它们的可见性。
When I try to add source packages from the "Properties" menu of the project, I do get the source back but as folders, not packages.
当我尝试从项目的“属性”菜单中添加源包时,我确实获取了源,但作为文件夹,而不是包。
Help would be much appreciated!
帮助将不胜感激!
采纳答案by Anton Arhipov
The question is answered at JRebel Forum. The culprit is unknown.
这个问题在JRebel 论坛上得到了回答。罪魁祸首未知。
回答by Bugalugs Nash
Try going to Files
view in Neteans, and look under the src
folder in your project. Does the src
folder have a sub-folder named java
?
尝试去Files
Neteans中查看,src
在你的项目文件夹下查看。该src
文件夹是否有名为 的子文件夹java
?
If not, create it (right click on src
, go to New
, select Folder
). Your source packages should re-appear in the project view.
如果没有,请创建它(右键单击src
,转到New
,选择Folder
)。您的源包应该重新出现在项目视图中。
回答by Anuja
This is for Netbeans 8.0. I am not sure if it is available for other versions.
这适用于 Netbeans 8.0。我不确定它是否适用于其他版本。
Right click on the project -> Set Configuration -> Customize -> Sources -> Add Folder for Sources Packages Folder -> Select folders you want to see under your project -> OK
在项目上右键->设置配置->自定义->源->为源包文件夹添加文件夹->选择你想在你的项目下看到的文件夹->确定
回答by kittu
Netbeans version 8:
Netbeans 版本 8:
In files tab, go to main
folder and create a folder called java
. That's it!
在文件选项卡中,转到main
文件夹并创建一个名为java
. 就是这样!