Update dependency on java to 2.4