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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:05:35+00:00 2026-05-27T17:05:35+00:00

I have a tool we wrote internal to create patches for our application. It

  • 0

I have a tool we wrote internal to create patches for our application.
It checks in scm what classes were changed and compile them using javac.
Then we add the created jar to the classpath.
In the past we discovered that there is a problem with that:
If I changed method return type in class A, and class B uses that method then the class A signature changed and we get NoSuchMethodError when class B call that method.
However, now I have a different case that class static variables were changed and I get:
java.lang.NoClassDefFoundError: Could not initialize class.
Do you know what is causing this?
Is there any way to tell which classes I need to compile when a class was changed?

  • 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-05-27T17:05:35+00:00Added an answer on May 27, 2026 at 5:05 pm

    It sounds like a lot of effort to develop a solution I suspect is unreliable.

    I would build the whole application, for every release. To create a patch, I would compare the class or file produced against that in the original distribution. Any files which have changed would be included.

    This is better because

    • you don’t have to understand all the consequences of changing a constant, method or class.
    • if you change something incidental like formatting or comments, there is no need to update the file.
    • you can have confidence that applying the patch is exactly the same and giving a full distribution.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi am working with NSArrays using foundation tool and i have wrote the following
I have a tool that is setup to query our Clearquest Database to return
Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from
We develop some product using an internal design tool that stores information in XML
I have a bunch of diagrams created using a Java diagramming tool that I
I have a text file which was created using some Microsoft reporting tool. The
I wrote a simple tool to generate a DBUnit XML dataset using queries that
We have an application wrote in C#, which broken into several projects. These projects
We have built an internal tool that generates the whole data access, each table
I have a tool that I want to install on my main development box

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.