Adding java stuff