The error Could not initialize class org.jetbrains.jps... means the IntelliJ Platform's build process (JPS, the JetBrains Project System) failed while loading one of its own Java classes — almost always because that class's static initializer threw an exception the first time it ran. The follow-up message, typically Caused by: java.lang.NoClassDefFoundError: Could not initialize class ..., is Java's way of saying "this class already failed to initialize once, so I'm not trying it again." The practical fix depends on which JPS class appears in the message and what the underlying cause is: most often a corrupted IDE installation or cache, an incompatible JDK pointed at the build, a missing or conflicting library on the build classpath, or an outdated IntelliJ build that no longer matches the project's format.
This article explains what JPS is, why the error takes this specific form, how to find the real underlying exception, and how to resolve the common causes in order of likelihood.
What JPS is and why it runs during a build
JetBrains Project System is IntelliJ IDEA's own incremental build engine. When you press Build or Make, or run a configuration that triggers a build, IntelliJ does not simply hand the project to Gradle or Maven by default. For non-Gradle, non-Maven projects — and for run configurations that use the IDE's native build — JPS compiles modules, resolves dependencies, and produces output. Even in Gradle or Maven projects, the IDE sometimes invokes JPS for its own purposes, such as building before a run configuration that uses the IDE builder.
JPS runs inside a separate JVM process launched by the IDE, using a classpath assembled from the IntelliJ installation's lib directory (specifically the JPS jars) plus configuration passed from the IDE. That separation is important: the error is not your code failing to compile. It is the build tool itself failing to load. Your source files and your project's dependencies are usually innocent, at least at the point of failure.
Why the message says "Could not initialize class" instead of showing the real error
Java class initialization is a one-shot affair. The first time a class is actively used, the JVM runs its static initializers. If one of them throws — for example, because a static field calls a method that fails, a native library is missing, a file cannot be read, or a dependent class is absent — the JVM marks the class as erroneous. Every subsequent attempt to use it throws NoClassDefFoundError with the message Could not initialize class X, and it does so without re-running the initializer. That is why the most visible message is often unhelpful and why the real cause appears earlier in the stack trace or in a Caused by chain.
Two consequences follow. First, the first exception in the log is usually the informative one; the Could not initialize class line is a downstream symptom. Second, restarting the IDE or rerunning the build is not a fix by itself, because the class loaded in a fresh JVM will simply fail again in the same way unless the underlying condition changed.
A related but distinct error is a plain NoClassDefFoundError without "Could not initialize class." That usually means a class is missing from the classpath entirely, not that it failed to load. The distinction matters: missing-class errors point to dependency or installation integrity problems, while initialization errors point to something that ran and threw. In practice both often trace back to the same root causes below.
First: extract the real exception
Before changing anything, get the full stack trace. In IntelliJ, the build output window truncates errors. Open Help → Show Log in Explorer/Finder (or the equivalent path for your OS) and look at idea.log around the time of the failure, or run the build from a terminal with the IDE's build tools. You are looking for:
the full class name after org.jetbrains.jps. — for example org.jetbrains.jps.incremental.storage.ProjectStamps or a JPS model class; the first Caused by: line and its exception type (NullPointerException, NoSuchMethodError, UnsupportedClassVersionError, FileNotFoundException, IOException, and so on); any message about a file path, a missing jar, or a version.
That single line usually identifies which of the following causes applies. Skipping this step is the most common reason people cycle through fixes that do not help.
Cause 1: a corrupted IDE installation or plugin conflict
IntelliJ ships JPS as signed jars inside its installation directory. If those jars are truncated, mismatched across a partial update, or replaced by a plugin that bundles its own copy of IntelliJ Platform classes, the JPS process can load incompatible classes and fail during initialization. Symptoms include the error appearing on every project, including a brand-new empty one, and NoSuchMethodError or IncompatibleClassChangeError in the Caused by chain.
What to do:
Try a different project, ideally a trivial one created fresh. If it also fails, the problem is the IDE environment, not your project. Update the IDE to the latest patch for your release line, then restart. Partial updates are a known source of mixed jar versions. Temporarily disable third-party plugins, especially build-system, Kotlin, or Android plugins, and see whether the error clears. A plugin compiled against a different platform version can inject conflicting classes. If the failure persists, reinstall the IDE (or use a fresh installation of the same version) and open the project again. This replaces the JPS jars with known-good copies.
Cause 2: broken caches and system state
The IDE keeps build state and caches under its system directory. Corrupted caches can leave stale references that the JPS startup code cannot resolve. The standard remedy is File → Invalidate Caches / Restart, choosing to invalidate and restart. This is worth doing once, after you have recorded the full error, because it is cheap and resolves a meaningful share of odd initialization failures. If invalidation does not help, closing the IDE and manually deleting the system directory's caches is the stronger version of the same fix — but do this only after confirming the exact path for your OS and IDE version, and note that it resets indexes and some local settings.
Cause 3: an incompatible or misconfigured JDK
JPS itself runs on a JDK bundled with or configured for the IDE, and it passes a project JDK to your build. Two distinct mismatches can cause initialization failures:
The IDE's own runtime is wrong. If you have pointed the IDE at a JDK that is too old or otherwise incompatible with the platform, platform classes can fail to initialize. Setting the boot JDK back to the bundled runtime, then restarting, excludes this. The project's target JDK or compiler settings are inconsistent. A UnsupportedClassVersionError in the Caused by chain indicates class files compiled for a newer Java version than the JVM running the build is trying to load. Verify the project SDK and the module language levels under Project Structure, and make sure the bytecode target is not ahead of the JDK in use.
Note that in Gradle and Maven projects the IDE delegation setting changes everything: if you have configured the IDE to delegate builds to Gradle or Maven, JPS should not be driving the build at all, and seeing a JPS error then suggests something else — a run configuration still using the IDE builder, a plugin invoking JPS, or a stale configuration — is calling it. Check the build and run delegation settings before chasing JPS-specific fixes.
Cause 4: classpath conflicts from plugins, libraries, or agents
Because JPS assembles its classpath from the installation plus project-derived configuration, a project-level library, a compiler plugin, an annotation processor, or a -javaagent option can shadow or break platform classes. If the error began after adding a dependency, a compiler plugin, or a build option, suspect that change first. Remove it temporarily to confirm. Particularly suspect are libraries that bundle an older copy of IntelliJ Platform or Kotlin compiler classes; those are the usual sources of NoSuchMethodError-style initialization failures during a build.
Cause 5: version mismatch between project format and IDE
Opening a project created by a much newer IDE in an older one, or a project whose .idea configuration references build components that the installed IDE does not provide, can produce initialization failures when JPS reads that configuration. The error class name often includes a model or storage package in these cases. Using the IDE version that matches the project's format, or letting the newer IDE migrate the project, resolves it. Do not hand-edit .idea files hoping to patch the symptom; migration by the appropriate IDE version is the reliable route.
A practical diagnostic sequence
When you do not yet know the cause, work in this order, stopping when the error clears:
1: Capture the full stack trace from the log; note the class and the first Caused by. 2: Reproduce in a fresh, empty project. If it fails there, the IDE environment is at fault; go to causes 1–3. 3: Confirm which builder is active — IDE builder or delegated Gradle/Maven — and whether the failing run configuration actually uses JPS. 4: Invalidate caches and restart. 5: Restore the bundled or correct boot JDK and check project SDK and language levels. 6: Disable third-party plugins temporarily; reinstall the IDE if needed. 7: Only then examine project libraries, compiler plugins, and options introduced recently.
This order moves from the cheapest, most reversible checks to the more invasive ones, and it avoids the common trap of resetting a project that was never the problem.
What this error is not
It is not a compilation error in your source. A syntax or type error produces normal compiler diagnostics with file and line references, not a JPS class initialization failure. It is also not, by itself, evidence that your project is corrupted. And it is not fixed by reinstalling your project's dependencies, because the failing class belongs to the IDE's build engine, not to your dependency set — though a dependency can be the trigger if it injects conflicting classes. Keeping that boundary straight prevents wasted effort.
The single most useful habit is reading the first exception rather than the last. "Could not initialize class org.jetbrains.jps..." is the JVM's echo of a failure that already happened; the fix lives one or two lines earlier in the trace.