You compiled the program with javac from JDK 1.5, and then tried to run it on another computer with an earlier version of Java. The other computer needs to be upgraded to Java 5.
Alternatively, if you have not used any JDK 5 features, you could recompile your classes with the -target <release> javac flag, specifying the version of the JDK runtime on the computer you wish to use as your final destination.