Amarnath Reddy
Amarnath Reddy

Reputation: 55

Make java.sql package or module available to boot classloader

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

Answers (1)

Amarnath Reddy
Amarnath Reddy

Reputation: 55

I fixed it by moving all my wrapper classes to system classpath

Upvotes: -1

Related Questions