Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8684219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:15:08+00:00 2026-06-12T22:15:08+00:00

I’m working on two projects. One of them is a library that has some

  • 0

I’m working on two projects. One of them is a library that has some classes such as Neuron.java, ANN.java, etc. The other one is a visualization program that uses those classes and runs some simulations, and then displays the results.

I intended for these two projects to have a different name and be in separate git repositories. There is a problem, though. All of my project directories (in which I plan to keep the .git/ directory, the documentation, the classes and a .jar file of all the classes) reside in com/yannbane/.

If I declare my classes as belonging to the com.yannbane.library package (for example), how will someone that downloads the repo be able to use the library if he doesn’t have the same folder structure?

Will it be easier for me to simply abandon com/yannbane and just keep all projects in completely separate directories and belonging to their own, separate packages? If I do so, I will have to share the .jar file of the library between the projects myself, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:15:10+00:00Added an answer on June 12, 2026 at 10:15 pm

    All the package structure of your code should be inside the repository.

    You don’t need to use Maven or an IDE (Netbeans, Eclipse) but you could use the same kind of structure to organize your code.

    I would have something like:

    Library/
            .git/
            src/
                com/
                    yanbanne
            libs/
                 dependencyL1.jar
                 dependencyL2.jar
            dist/
                 library.jar
                 library.doc
    
    Visualization/
                  .git/
                  src/
                      com/
                          yanbanne
                  libs/
                       dependencyV1.jar
                       dependencyV2.jar
                       library.jar
                  dist/
                       visualization.jar
                       visualization.doc
    

    The lib folders could be omitted using tools like Maven or Ivy. Copying library.jar to the dependencies of Visualization could be done automatically by establishing a dependency among projects in an IDE, but this is the basic idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.