I have been getting this error while compiling my code in jdk11 . While my older version was 1.8, I didn't get this error. I am aware of the module introduction from java 9 onwards and I have removed all the conflicting dependencies from classpath but still getting this error. I have crossed checked transitive dependency there's nothing of that sort.