Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter when Java 10 is installed #82

pesse opened this issue Apr 27, 2018 · 2 comments


Copy link

pesse commented Apr 27, 2018

For cli is compiled to use Java 8 it will throw the following error when the default Java-version is 10 (or higher):

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
        at org.utplsql.api.reporter.Reporter.setAttributes(
        at org.utplsql.api.reporter.Reporter.<init>(
        at org.utplsql.api.reporter.DefaultReporter.<init>(
        at org.utplsql.api.reporter.ReporterFactory.createReporter(
        at org.utplsql.api.reporter.ReporterFactory.create(
        at oracle.jdbc.driver.Accessor.getORAData(
        at oracle.jdbc.driver.OracleCallableStatement.getORAData(
        at oracle.jdbc.driver.OracleCallableStatementWrapper.getORAData(
        at org.utplsql.api.reporter.Reporter.initDbReporter(
        at org.utplsql.api.reporter.Reporter.init(
        at org.utplsql.cli.ReporterManager.initReporters(
        at org.utplsql.cli.Cli.main(
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more

This can be avoided if we pack java 1.8 rt.jar into lib folder.

@pesse pesse added the bug label Apr 27, 2018
Copy link
Member Author

pesse commented May 17, 2018

Actually it's not 1.8 rt.jar but the following maven dependency:


pesse added a commit that referenced this issue May 17, 2018
@pesse pesse closed this as completed in #86 May 19, 2018
pesse added a commit that referenced this issue May 19, 2018
Copy link

Thanks a lot, It really helped me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants