Remove the goNative variable in the Java