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