问题
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:
The source folders are still present on my drive:
I just need to restore their visibility in my opened Netbeans projects.
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!
回答1:
The question is answered at JRebel Forum. The culprit is unknown.
回答2:
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
?
If not, create it (right click on src
, go to New
, select Folder
). Your source packages should re-appear in the project view.
回答3:
This is for Netbeans 8.0. I am not sure if it is available for other versions.
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
回答4:
Netbeans version 8:
In files tab, go to main
folder and create a folder called java
. That's it!
来源:https://stackoverflow.com/questions/18869423/source-folders-not-visible-in-netbeans-project-after-installing-jrebel-plugin