This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError  RSS feed

Srikanth Basa
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to invoke a third party API, which internally performs some native calls. I hit the following error and the JVM crash follows.

The classes "SomeClass1" and "SomeClass2" are present in a single jar file. I have set my java class path to use this jar. The point here is, SomeClass1 performs a native method call and throws NoClassDefFoundError in trying to find SomeClass2 (which is in the same jar)

Any hints on how I can debug this ?

java.lang.NoClassDefFoundError: xxx/xxx/xxx/SomeClass2
at Method)
# An unexpected error has been detected by HotSpot Virtual Machine:
# Internal Error (53414645504F494E540E43505001E8), pid=2440, tid=3568
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
# An error report file with more information is saved as hs_err_pid2440.log
# If you would like to submit a bug report, please visit:
Exception in thread "Thread-2"
[ April 28, 2008: Message edited by: Srikanth Basavaraju ]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!