Run time error


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Run time error

Hybrid View

  1. #1
    Mark Guest

    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

  2. #2
    Paul Clapham Guest

    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




  3. #3
    Mark Guest

    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

    >
    >



  4. #4
    Lim Wing Hoe Guest

    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





  5. #5
    Aaron Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center