    

 ## On this page

  

 

 # classExists

 Last update: 18.06.2026 

public [classExists](class-exists.md)(jarFile: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), className: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

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

#### Return

true if the class exists, false if not

#### Parameters

jarFilethe path to the JAR fileclassNamethe fully-qualified name of the class to load#### Throws

[IOException](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html)if the path is invalid