add Java support