Adding java class