java_restart
Restart the Java Language Server to refresh its state and apply new configuration settings.
Instructions
Restart the Java Language Server (JDT.LS).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jdtlsHome": "<jdtlsHome>"
},
"name": "java_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jdtlsHome | Yes | Path to JDT.LS installation root directory | |
| workspacePath | No | Path to the workspace root (default: current directory) | |
| javaHome | No | Path to Java Home (overrides JAVA_HOME env var) | |
| javaRuntimes | No | List of Java Runtimes for different versions | |
| mavenConfig | No | Custom Maven configuration |