---
title: "HomeFinder"
description: "A utility class to find various paths of the running GraalVM, as well as the version."
kind: "abstract class"
id: "org.graalvm.home.HomeFinder"
module: "polyglot"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/home/HomeFinder.html"
---

# ◆ HomeFinder

[polyglot](../../../index.md) › [org.graalvm.home](index.md) · Every page: [llms.txt](../../../llms.txt)

Abstract class in [`org.graalvm.home`](index.md). Since 19.3.

```java
public abstract class HomeFinder
```

Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `HomeFinder`

A utility class to find various paths of the running GraalVM, as well as the version. Use [`HomeFinder.getInstance()`](HomeFinder.md#getInstance%28%29) to get the singleton instance.

## Constructors

### HomeFinder()
<a id="&lt;init&gt;()"></a>`public HomeFinder()`. Since 19.3. Cite: `org/graalvm/home/HomeFinder.html#<init>()`

## Methods

### getHomeFolder()
<a id="getHomeFolder()"></a>`public abstract Path getHomeFolder()`. Since 19.3. Returns `Path`: the GraalVM home folder if inside GraalVM or `null` otherwise. Cite: `org/graalvm/home/HomeFinder.html#getHomeFolder()`

### getVersion()
<a id="getVersion()"></a>`public abstract String getVersion()`. Since 19.3. Returns `String`: the GraalVM version or `"snapshot"` if unknown. Cite: `org/graalvm/home/HomeFinder.html#getVersion()`

### getLanguageHomes()
<a id="getLanguageHomes()"></a>`public abstract Map<String, Path> getLanguageHomes()`. Since 19.3. Returns `Map<String, Path>`: a Map of language ids to their home path. Cite: `org/graalvm/home/HomeFinder.html#getLanguageHomes()`

### getToolHomes()
<a id="getToolHomes()"></a>`public abstract Map<String, Path> getToolHomes()`. Since 19.3. Returns `Map<String, Path>`: a Map of tool ids to their home path. Cite: `org/graalvm/home/HomeFinder.html#getToolHomes()`

### getInstance()
<a id="getInstance()"></a>`public static HomeFinder getInstance()`. Since 19.3. Returns `HomeFinder`: the HomeFinder instance by using a ServiceLoader. Throws: `IllegalStateException` (unchecked): if no implementation could be found. Cite: `org/graalvm/home/HomeFinder.html#getInstance()`

## Inherited members

- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
