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.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

Java.DefineClass

Defines a class.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Java 10.3 Yes Yes Yes Yes No
MBS( "Java.DefineClass"; ClassName; ClassData )   More

Parameters

Parameter Description Example value
ClassName The name of the java class. "com.mbs.test"
ClassData The container value with the class. MyTable::ClassContainer

Result

Returns OK or error.

Description

Defines a class.
Please put .class file into a container and load it here.
Usually we prefer to load classes from jar file, but here you can dynamically declare a class with loading data from container.
You can use Java.FindClass to check whether a class is loaded already.
To read jar file, you can use our archive functions to expand zip archives.

See also

Blog Entries

Created 19th May 2020, last changed 19th May 2020


Java.CallStaticMethod   -   Java.FindClass

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins