> For the complete documentation index, see [llms.txt](https://docs.wproofreader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wproofreader.com/v6.14.0/deployment/configuration/grammar-check-engine-setup/configure-java-for-the-grammar-engine.md).

# Configure Java for the grammar engine

This guide explains how to configure Java for the algorithmic grammar check in the WProofreader application.

### Java version requirements

The algorithmic grammar engine requires a JVM to run. The required Java version depends on your application version:

* WProofreader 5.40.0 and above: Java 17
* WProofreader up to 5.39.x: Java 8

The following JDK distributions are supported:

* Oracle JDK
* Microsoft OpenJDK
* Other distributions that implement standard Java specifications

### Configure the JVM path

After installing a supported JDK, you may need to point the application to the JVM manually.

1. Stop AppServer.
2. In your WProofreader installation folder, open `AppServer/AppServerX.xml` for editing.
3. Locate the `PathToJavaVirtualMachine` parameter and set it to the path of `jvm.dll` on your server. For example:

{% code overflow="wrap" %}

```xml
<PathToJavaVirtualMachine>C:/Program Files/Java/jdk-17/bin/server/jvm.dll</PathToJavaVirtualMachine>
```

{% endcode %}

4. Save the file and start AppServer.

Alternatively, you can reinstall the WProofreader application. During installation, you'll be prompted to specify the JVM path manually.

### Verify grammar check

After restarting AppServer, verify that grammar check is working in the product UI. If it still isn't available, confirm that the path in `PathToJavaVirtualMachine` matches the actual location of `jvm.dll` on your server.
