-
Run time error
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
-
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
-
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
>
>
-
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.
--
Best Regards,
Wing Hoe
---------------------------------------------------------------
Email1: winghoe@yahoo.com
Email2: winghoe@hotmail.com
ICQ no: 2213281
www: http://pwp.maxis.net.my/winghoe
---------------------------------------------------------------
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
-
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks