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 8712677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:09:29+00:00 2026-06-13T05:09:29+00:00

I intend to extract several classes and packages from one Java project and place

  • 0

I intend to extract several classes and packages from one Java project and place them into another (which will have a distributable jar). That much isn’t too difficult, but of course with such a large refactoring there are consequences. Namely there are many classes in the original project that are subclasses of the classes I want to extract. What’s the best method for approaching this sort of refactoring?

  • 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-13T05:09:30+00:00Added an answer on June 13, 2026 at 5:09 am

    So basically this is what I did:

    1. Create a new project

    2. Copy over the appropriate classes from the old project to a new package in the new project, reconfigure until everything builds

    3. Test that project separately and build it in to a jar

    4. add jar as a dependency

    5. Delete the classes from the original project

    6. Manually change all the imports from the old packages to the new packages

    What I was really looking for was some way to automate or streamline step 6 to make sure I didn’t break anything, but I’m not sure it exists beyond mass find/replace.

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

Sidebar

Related Questions

I'm trying to extract hash substring values from window.location and write them into HTML
I intend to create a checker function which will be used by another functions.
Possible Duplicate: How to pass object from one activity to another in Android I
I intend to convert a physical book into a ebook for iPhone. I am
I intend to create a realtime counter. So one user can incremenet the counter
Im creating a bundle in one activity, then extracting it in another activity here
I am trying to extract graph information from a text file and converting it
In my application we will present the video stream from a traffic camera to
Based on code suggestions here at stackoverflow, I've tried to extract an image from
I am making a method to extract information from zipped files. All the zip

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.