On the 14th anniversary of Minecraft Snapshot 12w25a adding spruce stairs, out comes another Not So New release. This adds support for Minecraft versions 26.1 and 26.2, which both depend on Java 25 rather than 21, whilst also supporting all Minecraft versions previously supported. There are also fixes for mods with mixins referencing newer Java classes in certain circumstances.
As before, mods will be transformed wherever they use Java 9+ classes. Any mod which declares an explicit dependency on a Java version (e.g. java >= 25), such as the Example Mod, will need a manual dependency override to allow Not So New to do its work. This also includes Minecraft itself.
As an example, for just using Fabric API the following needs to be put in a file named fabric_loader_dependencies.json in the config folder:
{
"version": 1,
"overrides": {
"minecraft": {
"-depends": {
"java": "Not any more"
}
},
"fabric-api": {
"-depends": {
"java": "Not any more"
}
}
}
}For Minecraft versions using Java 25 (i.e. 26.1 onwards), you will also need to add -XX:+IgnoreUnrecognizedVMOptions to your JVM arguments. Mojang has included the unsafe memory flag by default for these versions, so you need to tell Java 8 to ignore this or it will refuse to start.