Results 1 to 19 of 19

Thread: noClassDefFoundError [SOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    noClassDefFoundError [SOLVED]

    I get the following error when trying to run this class file. It seems to compile fine but I just can't get it to run.
    Any help would be appreciated.


    This is what the java source file contains:
    Code:
     
    public class HelloJava {
      public static void main( String[] args ) {
        System.out.println("Hello, Java!");
      }
    }
    Also tried:
    Code:
     
    import javax.swing.*;
      
    public class HelloJava {
      public static void main( String[] args ) {
        JFrame frame = new JFrame( "Hello Java!" );
        JLabel label = new JLabel("Hello Java!", JLabel.CENTER );
        frame.getContentPane(  ).add( label );
        frame.setSize( 300, 300 );
        frame.setVisible( true );
      }
    }
    Last edited by gjon; Dec 10th, 2005 at 01:26 AM.

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