updated for openjdk version 6