This Java launcher error means the Java runtime refused to even start — before the program (often Minecraft or a Minecraft server) got a single line of its own code run. The usual reasons: the launch command asks for something impossible (too much memory for a 32-bit Java, a garbled argument), or the Java being launched is the wrong one entirely.
Every Java program starts by creating the Java Virtual Machine with the options in its launch command. If any option is invalid — a memory setting beyond what that Java can allocate, a flag from a different Java version, a corrupted _JAVA_OPTIONS variable — the JVM declines to exist, and this is the message. A second line often follows: “Error: A fatal exception has occurred. Program will exit.”
-Xmx set higher than a 32-bit Java can address (anything over ~1.5 GB), or higher than the PC's free RAM. In the Minecraft Launcher: Installations → the installation → More Options → JVM Arguments — set -Xmx2G to start. For servers, edit the .bat/.sh start file the same way._JAVA_OPTIONS or JAVA_TOOL_OPTIONS environment variable injects arguments into every Java launch — often set by old guides or other software. Settings → search “environment variables” → delete those two if present (note what they said first), then retry.Run the exact launch command in a Command Prompt window instead of through the launcher — Java prints a more specific complaint there (the invalid argument is usually named). If the plain command java -version itself errors, the Java installation is damaged: uninstall all Java versions in Settings → Apps, restart, and install the one correct version cleanly.
How much RAM should Minecraft get? For vanilla, 2 GB is genuinely enough. Modded packs commonly need 4–6 GB. More is not always better — oversized heaps on 32-bit Java cause this exact error, and on any Java they can cause stutter.
What is _JAVA_OPTIONS and why would it exist? It's an environment variable that forces options into every Java program. Old tutorials and some workplaces set it years ago; the program it now breaks has no idea it's there — which is why this fix surprises people.