Compile with Java 25 or 21 for 2026.1?

I received a report, that the class version is too new with 2026.1.

The plugin was compiled with language level 25, but the 2026.1 IDE (NixOS package) is apparently running with a JDK 21.

Is this a valid setup and I need to compile with Java 21 for 2026.1 or is compilation targeting Java 25 for 2026.1 valid?

Thanks!

Apparently NixOS build is something provided by community.

Although we still use JDK 21 level for compilation, at runtime we run on 25 already.