Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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