I have recently moved from Java 8 to jdk 23 and have used progaurd all the way. But with jdk 23 I get “can’t find referenced method/field” on almost every class. And most of the classes just reference common libraries like java and javax.
In Java 9, the JDK standard library was modularised using the Java modules (jmod) files. So there isn’t a single Java runtime jar like in Java 8 (rt.jar).
You already have the java.base.jmod as a library jar, but if you check the ${java.home}/jmods/ folder you will see there are many jmods.
You are probably using classes from other jmods so you would need to add those as libraryjars as well.