• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoClassDefFoundError

 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 xxx.xxx.xxx.xxx.xxx(Native Method)
at xxx.xxx.xxx.xxx.xxx(SomeClass1.java:55)
#
# 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:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Exception in thread "Thread-2"
[ April 28, 2008: Message edited by: Srikanth Basavaraju ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic