Does anybody know what is wrong with my code

I cannot see what is wrong with this code but i can't get it to compile. when i try to compile it i get the

"Exception in thread "main" java.lang.NoClassDefFoundError:

Is this a problem with compiling or is it a code error?

Here is my code

public class IntCalc{

int value;

public IntCalc(){

value = 0;

}

public void add(int number){

value = value + number;

}

public void subtract(int number){

value = value - number;

}

public int getValue(){

return value;

}

}

Message was edited by:

SHIFTER

[648 byte] By [SHIFTERa] at [2007-10-3 7:27:47]
# 1
Its a common problem. A quick forum search returned [url http://forum.java.sun.com/thread.jspa?forumID=423&threadID=573948]this thread.[/url]
CaptainMorgan08a at 2007-7-15 2:26:51 > top of Java-index,Developer Tools,Java Compiler...
# 2
Youd don't have a class file. Compile it first then run it. If your compiler isnt making the .class file tell me and ill give you a link to a realy good java compiler.
Mdoga at 2007-7-15 2:26:51 > top of Java-index,Developer Tools,Java Compiler...