use java classes instead of scala ones