Locally I need to code against Java 1.4.
I tried the suggestion in this post
how to restrict jdk api version in eclipse
however Eclipse still provides code completion for String.contains which is only available in Java 1.5 Nor did it provide the Red X error marker.
How can I get Eclipse to only provide code completion for Java 1.4 Classes and Methods and warn me with the Red X that I can’t use something above version 1.4?
You have to install java version 1.4.2 on your computer and define jre 1.4.2. It is not enough to set compilance with 1.4, because you still see 1.5 api