Added simple java class, and native frege wrapper.