I am having some issues coverting my application from 1.5 jdk to 1.4.2. I need to back down the version because it is going to run on a SAP box which they do not want to change at all. I am not sure how to do this. Is it as simple as downloading 1.4.2 and compiling it? I have compiled it on netbeans and have to move it to the SAP machine (Linux) Any help would be appreciated. Thanks. [ August 10, 2007: Message edited by: Katie Doody ]
You could compile on JDK 1.5 with the -source and -target switches as Ernest suggests, but this will not prevent you from using classes that are only in the Java 5 API.
It's safer to download 1.4.2 and compile your program with that. Then at least you will get a compiler error if you are using a class that doesn't exist in Java 1.4.2, instead of a runtime error later on.
Something else you could do is use Retroweaver, which is a tool which makes it possible to run Java 5 code on a Java 1.4.2 JVM.