Java is backwards compatible, so a Java 5 environment should have no problem executing code that has been written for Java 1.4. Java 1.3, on the other hand, very likely will be unable to run that code, but that's so old and obsolete that nobody should be using it any more.