- This topic has 4 replies, 3 voices, and was last updated 15 years, 11 months ago by
rmcvay.
-
AuthorPosts
-
grimFandangoMemberHi all,
I’m trying to set up a project called “utility” using linked source directories. I need to link three directories. Here’s what I have so far in the “Java Bulid Path” form:
utility/common – D:\code\path\appname\common\src\java
utility/myAPI – D:\code\path\myAPI\srcI need to add one more linked source, so from “Java Build Path” I click on “Link Source…” and fill in the following forms:
Linked Folder location: D:\code\path\appname\internal\src\java
Folder name: src\javaHowever, when I enter “src\java”, MyEclipse issues an error that says:
“Cannot create linked resource ‘/utility/src/java’. The parent resource is not accessible.”
I’m following instructions a colleague gave to me to set this project up, and this is how he has it set up. Unfortunately, it’s not working for me.
I don’t know how to fix this error because I don’t have the faintest clue as to what it means. Can someone please tell me what this error means and what causes it?
Thanks!
PeteJuly 30, 2009 at 4:48 am #300918
Brian FernandesModeratorPete,
You’re seeing this error because you don’t have a “src” folder in your project – you cannot create a multi level link folder.
So all you need to do is create a real src folder in your project and then attempt to create the src/java folder.
Hope this helps, please let us know if you need further assistance.
July 30, 2009 at 10:30 am #300924
grimFandangoMemberThank you so much! There are SO many Google returns on this error message (mostly related Google Android, it seems) and the only resolution offered is to wipe the project clean and start from scratch. So I post my resolution for Google archiving:
In the Package Explorer I right clicked the project and chose “New | Folder” and named it “src”.
Then I right clicked the project again and chose “Properties | Source”. There was a new entry that had “utility/src” on the left but no filesystem path on the right.
I clicked on “Link Source…”. Under “Linked folder location” I browsed to the location of the source “D:\code\path\appname\internal\src\java ” and under “Folder name” I put “src/java”. There was the following warning:
“Creating the folder will result in a conflict: Cannot next ‘utility/src/java’ inside ‘utility/src’. To enable the nesting exclude” (the warning seems to be cut off mid-sentence).
So I clicked on the radio button that says “Update exclusion filters in other source folders to solve nesting”, and MyEclipse seemed happy. I clicked “Next | Finish”.
July 30, 2009 at 10:50 am #300927
grimFandangoMemberOne short question more.
The reason why I had trouble with this is that I don’t really understand the “Java Build Path | Source” window as well as I should.
The right hand side filesystem path names are simple enough, but the left hand side names:
utility/common
utility/internal
utility/myAPIare these logical names or physical names?
There seems to be much greater “structure” in Java wtih Eclipse than C with vi. Can you suggest a location in the Eclipse documentation that I can read to learn more about this aspect of Eclipse?
Thank you *so* much for your assistance!!!
Pete
July 30, 2009 at 3:50 pm #300947
rmcvayMemberI’d start here: http://help.eclipse.org/ganymede/index.jsp
-
AuthorPosts