JLink`
JLink`

ReleaseJavaObject

ReleaseJavaObject[javaobject]

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.

Details and Options

  • 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.
Wolfram Research (2007), ReleaseJavaObject, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html.

Text

Wolfram Research (2007), ReleaseJavaObject, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html.

CMS

Wolfram Language. 2007. "ReleaseJavaObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html.

APA

Wolfram Language. (2007). ReleaseJavaObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html

BibTeX

@misc{reference.wolfram_2024_releasejavaobject, author="Wolfram Research", title="{ReleaseJavaObject}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_releasejavaobject, organization={Wolfram Research}, title={ReleaseJavaObject}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/ReleaseJavaObject.html}, note=[Accessed: 22-November-2024 ]}