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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

Java.DefineClass

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

Parameters

Parameter Description Example
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

Release notes

Blog Entries

This function checks for a license.

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


Java.CallStaticMethod - Java.FindClass

💬 Ask a question or report a problem