Reputation: 55
I am using sql statement wrappers. When trying with jdk 11, I am getting java.lang.NoClassDefFoundError: java/sql/PreparedStatement. From java 9, java.sql is loaded in the platform loader. My wrapper classes are in boot classpath. How do I make any module to be available in the boot classpath.
I tried --add-modules java.sql It didn't work. Any suggestions
Upvotes: 1
Views: 497
Reputation: 55
I fixed it by moving all my wrapper classes to system classpath
Upvotes: -1