0

Inside Class A, I have a method and in the method, there is a line: someClassB.staticMethodB(arg); where someClassB is another class.
Now, arg is fine. But at this line I get an error: java.lang.NoClassDefFoundError: someClassC

It seems that someClassB does not load properly for the static method staticMethodB to execute.

But inside someClassB, we are not using someClassC at all. So why JVM tries to find someClassC?

0

1 Answer 1

3

I suspect you're either actually using it in someClassB somewhere you haven't seen, or it's used in a superclass of someClassB. Either way, it sounds like you need someClassC to be present...

Sign up to request clarification or add additional context in comments.

1 Comment

Yes...it is used in superclass.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.