Software⏱️ 3 min read📅 2026-06-04

How to Fix: What's the reason for "Error:Cannot determine Java VM executable in selected JDK"?

IntelliJ IDEA Error: Cannot determine Java VM executable in selected JDK - Solution

Quick Answer: Edit Settings > Project: > Build, Execution, Deployment > JavaVM, and enter the path to your JDK's bin directory.

The error 'Error: Cannot determine Java VM executable in selected JDK' occurs when IntelliJ IDEA is unable to find the Java Virtual Machine (JVM) associated with the Java Development Kit (JDK) specified in the project settings. This issue affects users of IntelliJ IDEA 13.1.4 and later versions, including the latest release 14.

This error can be frustrating as it prevents SBT from running successfully, causing compilation issues and disrupting development workflow.

🛑 Root Causes of the Error

  • The primary reason for this error is that the JDK version specified in the project settings does not match the JVM version on the system. This discrepancy occurs when the Java executable in the JDK directory does not point to the correct JVM location.
  • Another possible cause is that the JDK installation is corrupted or incomplete, leading to an incorrect JVM path being stored in the IntelliJ IDEA settings.

✅ Best Solutions to Fix It

Update JDK Path in IntelliJ IDEA

  1. Step 1: Open the Run/Debug Configuration for SBT and click on the '...' button next to the 'JDK' field.
  2. Step 2: Select the correct JDK version from the list of available options or browse to the location of the JDK installation and select it manually.
  3. Step 3: Save the changes and try running SBT again. If the issue persists, proceed to the alternative fix method.

Reinstall IntelliJ IDEA

  1. Step 1: Close all IntelliJ IDEA instances and restart the application.
  2. Step 2: Uninstall IntelliJ IDEA from the system using the uninstaller or by deleting the installation directory manually.
  3. Step 3: Reinstall IntelliJ IDEA from the official website, ensuring that the correct JDK version is selected during the installation process. If SBT still fails to run after reinstalling, try updating the JDK path in IntelliJ IDEA as described in Method 1.

🎯 Final Words

By following these steps, you should be able to resolve the 'Error: Cannot determine Java VM executable in selected JDK' issue and get your SBT project running smoothly again. If you encounter any further problems, consider reaching out to the IntelliJ IDEA support team or seeking assistance from a qualified IT professional.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions