tells the Java memory-management system to forget about any references to the specified JavaObject that are being maintained solely for the sake of the Wolfram Language.


  • To use ReleaseJavaObject, you first need to load J/Link using Needs["JLink`"].
  • The JavaObject in the Wolfram Language is no longer valid after the call.
  • Call ReleaseJavaObject when you are completely finished with an object in the Wolfram Language, and want to allow it to be garbage-collected in Java.