Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Java.NewClassObject

Creates a new object and invokes constructor.

Component Version macOS Windows Linux Server iOS SDK
Java 6.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Java.NewClassObject"; ClassName; ConstructorName; Signature { ; Params } )   More

Parameters

Parameter Description Example Flags
ClassName The name of the java class. "com.mbs.test"
ConstructorName The name of the constructor. "test"
Signature The java signature of the method.
This describes the parameter types.
"()"
Params The parameters to pass.
Pass one parameter in FileMaker for each parameter to pass.
Optional

Result

Returns object reference or error.

Description

Creates a new object and invokes constructor.
Parameters and return type is detected by plugin automatically from signature.
Please call later Java.Release to release the object.

Java is only available if you call Java.Initialize before to load the java runtime.

Examples

Create a new test object with default constructor:

MBS( "Java.NewClassObject"; "test"; "<init>"; "()V")

See also

Release notes

Example Databases

Blog Entries

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


Java.Initialized - Java.ObjectClassName

Feedback: Report problem or ask question.