modify run to work with java files