set constraint on openjdk java 7
cleaned up so it works out of the box again