Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    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 } )


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

Java.Initialized   -   Java.ObjectClassName

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins