Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Relationship between disc file structure and Modules -> Package - > Class

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Location
    Denmark
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink Relationship between disc file structure and Modules -> Package - > Class

    Learning Java using Eclipse. I do not understand the above relationship at all. Java seems to require strong file structure, so I have created this in the form javaApplications->Sub-Directories (applications; testing; library; learning) When I try to create a Java Application, it asks me for a name, eg complex, then for a location. If I give it D:\javaApplications, it adds to this the sub-directory complex. I do not want that, I want complex to go into library. If it specify this, it sends me an error message D:\javaApplications\library overlaps with another project: library. It will accept D:\javaApplications\library\complex, but I thought that my Module level would be D:\javaApplications and my package level would be (library, testing, etc), but it seems to want me to create separate package-info files at this lowest sub-directory level. What am I doing wrong?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,381
    Thanks
    54
    Thanked 2,637 Times in 2,587 Posts

    Default Re: Relationship between disc file structure and Modules -> Package - > Class

    I don't know anything about java modules. Try asking your question on this forum:
    http://www.coderanch.com/forums
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. File structure
    By alfredperez in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 17th, 2013, 07:28 AM
  2. Replies: 149
    Last Post: February 19th, 2013, 10:04 PM
  3. Replies: 1
    Last Post: February 14th, 2013, 07:30 PM
  4. is it possible to extends java class with another class from different package?
    By fredsilvester93 in forum Java Theory & Questions
    Replies: 6
    Last Post: July 20th, 2012, 03:51 PM
  5. Java Class (C++ Structure Like) Help
    By Khadafi in forum Java Theory & Questions
    Replies: 6
    Last Post: January 13th, 2012, 09:07 PM

Tags for this Thread