Results 1 to 5 of 5

Thread: Newbie Java Programing Problem *Resolved*

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Posts
    4

    Newbie Java Programing Problem *Resolved*

    Ok im REALLY new to Java like i cant get my first 2 programs FROM a BOOK to work. Here they are:

    BigDebt.java

    class BigDebt {
    public static void main(String[] arguments) {
    int debt = 59000000;
    debt = debt / 1440;
    System.out.println("A Minutes Worth Of Dedt Is: $" + debt);
    }
    }

    Root.java

    class Root {
    public static void main(String[] arguments) {
    int number = 255;
    System.out.println("The square root of"
    + number
    + " is "
    + Math.sqrt(number));
    }
    }

    now ive compiled them error free and yet when i goto run the class file in Dos i get this message:

    Exception in thread "main" Java.lang.NoClassDefFoundError: Root/class

    and thats it.....can ANYONE Help? ive even been on the tutorials from Sun and copy and pasted the hello world program and i have the same error come up
    Last edited by gmoney; Aug 31st, 2003 at 07:42 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