NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Symbolic links, "Package folder already used in project," and "Ignoring root with no ClassPath:"

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
agallardo



Joined: 26 Aug 2010
Posts: 3

PostPosted: Thu Aug 26, 2010 4:57 pm    Post subject: Symbolic links, "Package folder already used in project," and "Ignoring root with no ClassPath:" Reply with quote

Just as a reminder to myself, and with the hope it can help others...

I have experienced weird project parsing behaviour. After investigating, I could find in the NetBeans' log the meaningful warning:
Code:
WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: (relevant path)

referring to the source root I was interested in.

Trying to recreate the project in different NetBeans versions (6.7.1, 6.8, 6.9, 6.9.1) it displayed inconsistently the error dialog
Code:
Package folder already used in project

when trying to add some source roots.

The cause:

The project I created and its sources were stored in a directory named with a symbolic link. It seems that NetBeans resolves symbolic links to physical locations, and it ended sometimes with a duplicate entry in Files view of the project in Projects view (under Files view the project entry had the same name but different paths).

The solution:

1. I moved the whole project into a physical directory
2. I have deleted the user's .netbeans/6.9/var
3. I have restarted NetBeans

Now it works.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo