Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Creates a new object and invokes constructor.

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


Parameter Description Example value
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 Optional
The parameters to pass.
Pass one parameter in FileMaker for each parameter to pass.


Returns object reference or error.


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.


Create a new test object with default constructor:

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

See also

Example Databases

Blog Entries

Release notes

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

Java.Initialized   -   Java.ObjectClassName

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos