|
-
Aug 30th, 2003, 07:38 PM
#1
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|