updated java

Closes #3917.