Skip to main content

ModelCenter APIs 2026 R1

classExists

Last update: 18.06.2026

public classExists(jarFile: String, className: String): Boolean

Utility method to determine if a class exists in a JAR file.

Return

true if the class exists, false if not

Parameters

jarFile the path to the JAR file
className the fully-qualified name of the class to load

Throws

IOException if the path is invalid

Connect with Ansys