This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


tells the Java memory-management system to forget about any references to the specified JavaObject that are being maintained solely for the sake of Mathematica.
  • To use ReleaseJavaObject, you first need to load J/Link using Needs["JLink`"].
  • The JavaObject in Mathematica is no longer valid after the call.
  • Call ReleaseJavaObject when you are completely finished with an object in Mathematica, and want to allow it to be garbage-collected in Java.