Add JRE emulation in preparation for reflection support