Do not use Java 1.6 API

Hi Vadim,

this is the pull request of my JDK 1.5 compile changes against the "official" JDK 5 branch ...

-dirk