# JVMSelector.JVMLocation

Import: `import com.install4j.api.JVMSelector;`

```java
static interface JVMLocation
```

The interface providing information about a JVM.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getJavaHome()`](#getjavahome) | `File` | Returns the base directory of a Java installation. |
| [`getVersion()`](#getversion) | `String` | Returns the version of the JVM. |
| [`isJDK()`](#isjdk) | `boolean` | Returns whether this a JDK installation. |

### getJavaHome()

```java
File getJavaHome()
```

Returns the base directory of a Java installation.


**Returns:** the JVM's base dir

### getVersion()

```java
String getVersion()
```

Returns the version of the JVM.


**Returns:** the JVM's version

### isJDK()

```java
boolean isJDK()
```

Returns whether this a JDK installation.


**Returns:** true if this a JDK

