Results 1 to 2 of 2

Thread: BASIC Java errors

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    BASIC Java errors

    Code:
    public class HelloWorldApp  {
    	public static void main ( String [] args ) {
    		System.out.println ( "TEST" );
    	}
    }
    I just installed java 1.4.2_09 and compiled the above, but when i try to run it as so:

    java HelloWorldApp

    I get this:

    C:\Java>java HelloWorldApp
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp

    What is going on, here is some information that might be helpful:
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
    Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)


    "X-mas is 24.Desember you English morons.." - NoteMe

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Re: BASIC Java errors

    Fixed it, classpath had to be set to nothing... something funky with quicktime was in there.


    "X-mas is 24.Desember you English morons.." - NoteMe

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