# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/deployment/configuration/grammar-check-engine-setup/configure-java-for-the-grammar-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
