To use the JOSM Scripting Plugin on NixOS, replace OpenJDK with GraalVM: josm.override { jre = graalvm17-ce; }