Added support for JNewInstance to take arguments
Added more JRE emulation