facebook

The parent resource is not accessible

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #300878 Reply

    grimFandango
    Member

    Hi 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\src

    I 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\java

    However, 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!
    Pete

    #300918

    Brian Fernandes
    Moderator

    Pete,

    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.

    #300924

    grimFandango
    Member

    Thank 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”.

    #300927

    grimFandango
    Member

    One 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/myAPI

    are 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

    #300947

    rmcvay
    Member
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: The parent resource is not accessible

You must be logged in to post in the forum log in