Fixed java interop for the interpreter