jobjRef-class: Class "jobjRef" - Reference to a Java object

Description Objects from the Class Slots Methods Author(s) See Also


This class describes a reference to an object held in a JavaVM.

Objects from the Class

Objects of this class should *not* be created directly. Instead, the function .jnew should be use to create new Java objects. They can also be created as results of the .jcall function.



Internal identifier of the object (external pointer to be precise)


Java class name of the object (in JNI notation)

Java-side attributes are not accessed via slots, but the $ operator instead.


This object's Java methods are not accessed directly. Instead, .jcall JNI-API should be used for invoking Java methods. For convenience the $ operator can be used to call methods via reflection API.


Simon Urbanek

See Also

.jnew, .jcall or jarrayRef-class

Search within the rJava package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.