> My app has recently started throwing NoClassDefFoundErrors.  It started
> after I made some fairly large code changes, but the errors are coming
> from code that was unchanged...
> 
> I've removed all the class files and recompiled (hooray for Makefiles!),
> with the same result.  The only other things in my classpath are rt.jar
> and the gnu regular expression package's jar.  This should mean that
> version skew isn't the cause.
> 
> I tried putting try{}catch(Throwable t){t.printStackTrace();} around the
> constructors of the classes in question, so I know pretty exactly where
> it's happening, but not why.
> 
> I just tried recompiling everything with javac (I was using jikes), no
> change.
> 
> The freaky thing here is that these errors don't get thrown every time.
> This error gets thrown in the init phase of the app's life (reading its
> config files).  Sometimes it dies, sometimes it lives, even given the
> exact some config file.
> 
> By the way, the class file in question does exist and is in my classpath.
> javap finds it just fine.  The class contains no static block and no
> static variables.
> 
> I can (try to) provide any other relevant info.
> 
> Am I going crazy?

You can get NoClassDefFoundError for a class which extends another class
that was somehow unable to load. This can be a bit tricky to locate.

Just a thought.

//Per Widerlund


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to