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: I need advice on folder structure and namespaces

  1. #1
    Junior Member
    Join Date
    May 2023
    Posts
    7
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default I need advice on folder structure and namespaces

    Consider the following folder structure...



    The branch with the highlighted node `MidiMix` comprises a complete Maven project which successfully builds to produce `midimix-0.1.jar` which is the copied to `MidiMix.bwextension` which is used by Bitwig Studio.

    This all is working well. However, I want to add some utility classes `Logger` and `Receiver` to the `com.carlca` namespace but held separately in a different tree.

    My question is, therefore, is this feasible or even desirable to organise like this. I'm hoping that one day, the `com.carlca` namespace my contain lots of different apps and classes, so, to my way of thinking, it makes sense to have the `MidiMix` specific code separate in terms of folder structure, but linked, in terms of shared namespace.

    Am I on the right tracks here or have I got it totally wrong.

    I should point out that the code in the top half of the image is not working and is only there to illustrate my thinking.
    Last edited by carlcaulkett; May 11th, 2023 at 05:14 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need advice on folder structure and namespaces

    I don't use Maven and can not provide any help for this problem. There are several people on the following forum that can help:
    http://www.coderanch.com/forums
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Advice on how to structure co-dependent objects
    By Danni111111 in forum Java Theory & Questions
    Replies: 2
    Last Post: January 20th, 2018, 03:29 PM
  2. How to set resources folder?
    By A1Artem in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: July 7th, 2012, 09:45 PM
  3. create the project folder
    By vel024 in forum Java Theory & Questions
    Replies: 1
    Last Post: August 3rd, 2010, 11:27 AM
  4. Getting information from a folder
    By shadihrr in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: February 23rd, 2010, 04:13 PM
  5. Java program to take new files from one path and sent it do another path?
    By jazz2k8 in forum File I/O & Other I/O Streams
    Replies: 11
    Last Post: July 8th, 2008, 06:47 AM