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: 10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   11.6    Statistic    FMM    Blog  


Defines a class.

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


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


Returns OK or error.


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

Release notes

Blog Entries

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

Java.CallStaticMethod - Java.FindClass

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat