    

 ## On this page

  

 

 # getClassLocation

 Last update: 18.06.2026 

public [getClassLocation](get-class-location.md)(cls: [Class](https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)

return the folder where the class file is located

#### Return

folder name that contains the class

#### Parameters

clsthe class that is searched for