fixed some java() issues