Modify Java scripts