Hi,
> Umm I find that I will get htis error for a class when a class it derives on
> is not present.
[snip]
> Are all the super classes accessible ???
Hmm...
The class that's getting the ClassNotFoundException extends the one the
NoClassDefFoundError is coming from.
In case that was incompre
Dustin Lang wrote:
> Hi,
>
> An ammendment to my original post:
>
> The ClassNotFoundException is successfully caught and execution continues
> (same as it would if a really nonexistant class name was given in the
> config file), but immediately after it comes the error everyone loves,
>
Umm I f
Hi,
An ammendment to my original post:
The ClassNotFoundException is successfully caught and execution continues
(same as it would if a really nonexistant class name was given in the
config file), but immediately after it comes the error everyone loves,
java.lang.NoClassDefFoundError: MyClass
Hi,
The problem (actually slightly different but feels the same) is happening
again. The magical trick of unpacking jars isn't going to work, this time,
because my jars are already unpacked :(
What's happening is basically that in the initialization of my app I read
a config file that contains
> 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
Hi,
> Try to unpack all jars and put them in one tree. If you are using JRE
> 1.1.x do the same to rt.jar. Then try to run the app. Jar access code
> was not multithreaded at time and sometimes could cause similar effects
> (I've experienced it while getting images and classes at same time from
Are you sure the same JVM is being invoked for each run? You can get
the NoClassDefFoundError exception when using the wrong JVM.
Regards,
Jim Caley
--
Dustin Lang wrote:
>
> Hi,
>
> My app has recently started throwing NoClassDefFoundErrors. It started
> after I made some fairly large code
Dustin Lang wrote:
>
> Hi,
>
> 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...
>
[..]
>
> By the way, the class file in question does exist and is in my classpath.
Hi,
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 thing