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

Java.FindClass

Checks if a class is available.

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

Parameters

Parameter Description Example
ClassName The name of the java class. "com.mbs.test"

Result

Returns 1, 0 or error.

Description

Checks if a class is available.
Returns 1 if class is found, but 0 if not.

Examples

Check for class named test:

MBS( "Java.FindClass"; "test" )

Check for string class:

MBS( "Java.FindClass"; "java.lang.String" )

Example result: 1

See also

Release notes

Blog Entries

This function checks for a license.

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


Java.DefineClass - Java.GetContainerFileName