Java.Release
------------

Releases an object reference.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Java](component_Java.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Java.Release"; JObject ) 

**MBS**( **"Java.Release";** /\* Releases an object reference. \*/  
**$JObject**) /\* The java object reference number.e.g. $j \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JObject | The java object reference number. | $j |

### Result

Returns OK or error.

### Description

Releases an object reference.  
Please call that for all java objects to release memory.  
### Examples

Release object in $j:

 Set Variable \[$r ; Value:MBS ( "Java.Release"; $j )\]  
### See also

- [Java.CallObjectMethod](JavaCallObjectMethod.md)
- [Java.CallStaticMethod](JavaCallStaticMethod.md)
- [Java.GetObjectField](JavaGetObjectField.md)
- [Java.GetStaticField](JavaGetStaticField.md)
- [Java.List](JavaList.md)
- [Java.ObjectClassName](JavaObjectClassName.md)
- [Java.ReleaseAll](JavaReleaseAll.md)
- [Java.SetObjectField](JavaSetObjectField.md)
- [JSON.Release](JSONRelease.md)
- [Llama.Release](LlamaRelease.md)

### Example Databases

- [Java/Java Example/Java Example](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Java/Java%20Example/Java%20Example.shtml#2ScriptAnchor_)
- [Java/Java Tests/Java Tests](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Java/Java%20Tests/Java%20Tests.shtml#2ScriptAnchor_)

This function checks for a license.

Created 2nd October 2016 , last changed 2nd October 2016

  
[Java.ObjectClassName](JavaObjectClassName.md) - [Java.ReleaseAll](JavaReleaseAll.md)

[HTML Version](JavaRelease.shtml)