CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 1999
    Location
    California
    Posts
    143

    NoClassDefFound. Why?



    Exception in thread "main" java.lang.NoClassDefFound

    I did not write this code and it should run standalone.


  2. #2
    Guest

    Re: NoClassDefFound. Why?

    a


  3. #3
    Guest

    Re: NoClassDefFound. Why?

    Gettin the same problem with win98 laptop while same code works fine on win95 machine. Some body please shed light


  4. #4
    Join Date
    Mar 1999
    Location
    Utah
    Posts
    66

    Re: NoClassDefFound. Why?

    sounds like you haven't declared
    public static void main(String args[])
    {


    }




  5. #5
    Join Date
    Mar 2000
    Location
    Bangalore, India
    Posts
    3

    Re: NoClassDefFound. Why?

    As said by Mr Erik the answer can be, to declare the " public static void "
    for the main {} class
    But it is for an "Application "

    If we are writing an "Applet", then we are not writing any main{} class as such
    I also faced this same error while writing an aplet.

    I just checked for the "public ststic" declaration, for all the classes which are reffered, somewhere else in my code.

    but I need some more clarification about this.

    thanks.
    vaishali


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured