My java code compiles fine. But when I try to run it I get this error message:
Exception in thread "main" java.lang.NoClassDefFoundError: GenerateReports
Any clues? I checked the program and there is a main method and the class
is called GernerateReports, so what gives?
Mark
07-21-2000, 11:34 AM
Paul Clapham
Re: Run time error
Is the class called GenerateReports or GernerateReports?
Mark <msorteberg@inspec.com> wrote in message
news:397857a1$1@news.devx.com...
>
> My java code compiles fine. But when I try to run it I get this error
message:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: GenerateReports
>
> Any clues? I checked the program and there is a main method and the class
> is called GernerateReports, so what gives?
>
> Mark
07-21-2000, 11:45 AM
Mark
Re: Run time error
Paul:
The class is called "Public Class GenerateReports" and the file name is
"GenerateReports.java". Sorry about the typo in my original email message!
Mark
"Paul Clapham" <pclapham@core-mark.com> wrote:
>Is the class called GenerateReports or GernerateReports?
>
>Mark <msorteberg@inspec.com> wrote in message
>news:397857a1$1@news.devx.com...
>>
>> My java code compiles fine. But when I try to run it I get this error
>message:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: GenerateReports
>>
>> Any clues? I checked the program and there is a main method and the class
>> is called GernerateReports, so what gives?
>>
>> Mark
>
>
07-21-2000, 12:40 PM
Lim Wing Hoe
Re: Run time error
Er, Mark, if you typed the spelling and the case exactly in the code as what
you typed in your post earlier, that is
"Public Class GenerateReports"
you're surely going to get an error. You should change the case for "Public
Class" to "public class". All lower characters.
Mark <msorteberg@inspec.com> wrote in message
news:39787014$1@news.devx.com...
>
> Paul:
> The class is called "Public Class GenerateReports" and the file name is
> "GenerateReports.java". Sorry about the typo in my original email
message!
> Mark
07-23-2000, 09:36 PM
Aaron
Re: Run time error
Hi,
I too am experiencing similar problems to this with the error message:
java.lang.NoClassDefFoundError: istream (wrong name: istream/istream)
I have a collection of class files (compilation produces no errors or warnings)
compressed into a jar file. The above error message is produced when a html
file containing:
<applet
archive="istream.jar"
code="istream.class"
name=istream
width=500
height=300 >
</applet>
is interpreted. Ideas anyone?