facebook

What is the different of creating a foler and a package?

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

    ff_ff
    Member

    Hello,everyone
    Today I want to create a package hibernate under a package com.test, I select ‘new -> package’,but myeclispse create a folder under the package com.test.
    How can I create a package under a package?
    Thanks

    #263127 Reply

    Riyad Kalla
    Member

    They are technically exactly the same thing. If you create a folder under a directory that is marked as a source directory, it will become a package.

    Thusly, if you create a package under a random folder that isn’t a source folder, it will just be a normal folder.

    #263134 Reply

    ff_ff
    Member

    But how can I mark it as a source directory or folder?
    In my application, I have a package com.test.struts, and I want create a package com.test.hibernate,but myeclcipse create a folder under the package com.test , so the applicationContext can not find the class under the com.test.hibernate.
    Who can help me ?
    Thanks

    #263136 Reply

    Riyad Kalla
    Member

    ff_ff,
    I don’t totally understand the problem you are seeing… I think it might be a case of mistaken identity. Can you post a screenshot of what you are seeing?

    I’m attaching a screenshot of an example. I used New > Package to create the “struts” package in com.test.struts, and then I used New > Folder to create the “hibernate” package in the com.test.hibernate. Since /src is a source directory, that means every folder under it will be a package, in this case com, test, struts and hibernate are all folders.

    Attachments:
    You must be logged in to view attached files.
    #263137 Reply

    ff_ff
    Member

    Hello, support-rkalla
    Sorry , I am a newer, I can not find how to update a picture?

    #263138 Reply

    Riyad Kalla
    Member

    Under my name you should see a “PM” button, you can attach the image to a message to me and be sure to include a link to this thread so I know why I’m getting the message.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: What is the different of creating a foler and a package?

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