Windows exit 1Medium

Java Virtual Machine Launcher Error in Windows 10: Solution

The 'Java Virtual Machine Launcher has exited with code 1' error blocks Java applications. This article covers the causes of the failure and provides step-by-step instructions to restore functionality.

Updated at April 3, 2026
5-10 minutes
Easy
FixPedia Team
Применимо к:Windows 10 (20H2 and newer)OpenJDK 11-21Oracle Java SE 17-21

What the exit 1 Error Means

When attempting to launch a Java application, server, or IDE, the system displays a dialog with the text: Java Virtual Machine Launcher has exited with code 1. This means the JVM initialization process was interrupted at an early stage. The launcher could not hand over control to the virtual machine because it was unable to locate executable files, due to an architecture mismatch, or because access to necessary resources was blocked. The error appears in both user utilities and professional development environments.

Causes

  1. Incorrect paths in environment variables. The system cannot find java.exe or javaw.exe because JAVA_HOME or Path are specified incorrectly or point to a non-existent directory.
  2. Architecture mismatch. You are trying to run a 64-bit JVM on a 32-bit build of Windows 10, or vice versa. The launcher and OS architectures must strictly match.
  3. Blocking by antivirus or UAC. Security systems may flag the call to javaw.exe as suspicious activity, especially when launching a downloaded .jar archive for the first time.
  4. Corrupted cache or installation files. A failed previous update, improper removal of an old version, or a disk error can result in missing critical .dll libraries in the bin directory.

Solutions

Solution 1: Check and Configure Environment Variables

  1. Press Win + R, type sysdm.cpl, and go to the "Advanced" tab → "Environment Variables".
  2. In the "User variables" section, find JAVA_HOME. The value should point to the root of the installed JDK (e.g., C:\Program Files\Java\jdk-21).
  3. Select the Path variable, click "Edit", and ensure %JAVA_HOME%\bin is present in the list.
  4. If the variable does not exist, create it. After saving, open a command prompt and check the command:
java -version

If you see a build number, the path is correct. Restart the application launcher.

Solution 2: Align Java and Windows Architecture

Ensure your Java architecture matches your OS architecture. Open SettingsSystemAbout and check the "System type" line.

  • For a 64-bit OS, download distributions marked x64 or Windows x64 Installer.
  • For a 32-bit OS, use x86 or Windows x86 Installer.

⚠️ Important: Running a 64-bit JVM on 32-bit Windows is physically impossible. Even if the installer completes successfully, the launcher will terminate immediately with exit 1.

Solution 3: Run with Elevated Privileges and Disable Blocks

Sometimes standard user permissions prevent the JVM from creating temporary files or accessing the registry.

  1. Locate the application shortcut or the launcher .exe file.
  2. Right-click → "Properties".
  3. Go to the "Compatibility" tab and check "Run this program as an administrator".
  4. Click "Apply" and try to run the program.

If the error persists, temporarily disable your antivirus or add the Java folder to the real-time protection exclusions. This will help determine if the system is blocking the javaw.exe process.

Solution 4: Clear Cache and Reinstall JDK

If JVM files are corrupted, a quick fix won't work. Perform a clean installation:

  1. Uninstall the current version via SettingsApps.
  2. Delete any remaining directories in C:\Program Files\Java\ and C:\Program Files (x86)\Java\.
  3. Clear the Java cache: open Control PanelJavaGeneral tab → Settings... button → Delete Files... → select all types and confirm.
  4. Download the official installer from Oracle or Adoptium, run it, and restart your computer.

Prevention

To prevent the Java Virtual Machine Launcher error from recurring, establish stable system paths and avoid manually copying JDK files between PCs. Use package managers like winget install OpenJDK.21 so the system automatically manages environment variables and versions. Regularly check free space on your system drive: if space is low, the JVM cannot unpack temporary classes and will fail. When working with multiple Java versions, use manager utilities that allow you to switch the active build with a single command without risking system path corruption.

F.A.Q.

Why does the code 1 error appear?
Do I need to completely remove Java before fixing?
Will installing a newer Java version help?

Hints

Check environment variables
Match system and Java architecture
Run as administrator

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community