fixed compile error due to importing scalas file type rather than javas