Moving constantize_by to jrubyfx and fixing for java8