make Java instructions more explicit

This stage must be done via shell, so make it shell specific