Fix use class as string because Java:: is not defined in ruby