Add openjdk7 support

[ci skip]