Add java to dependencies