Sources directory is already NetBeans project error
i got that error and i can't add project in netbeans.. please teach me how to fix this
even if i ren开发者_如何学JAVAame my folder it doesn't work...
Netbeans tries to add a folder (nbproject) to your project during import. If it is already there NB fails to add it. Move the existing nbproject folder to a different directory outside your project and try to import again.
See this question.
Delete the nbproject
folder in your project directory and restart the IDE.
I had a PHP project with maven pom.xml
, with no nbproject
directory and clear cache, and netbeans would refuse to create a new project from sources with that pom.xml
in place. Had to remove pom.xml
, create a project and put pom.xml
back.
I fixed the problem with:
rm -r ~/.cache/netbeans
rm ~/.netbeans/.superId
Instead of creating it as a New Project
try Open Project
if nbproject
directory exists in your project root directory.
This happen to me on MS Windows as well. Cause was netbeans.conf's
netbeans_default_options="-J-Dline.separator=LF"
精彩评论