java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets
at org.mariadb.jdbc.internal.packet.result.ErrorPacket.(ErrorPacket.java:76)
at org.mariadb.jdbc.internal.packet.read.ReadInitialConnectPacket.(ReadInitialConnectPacket.java:88)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.handleConnectionPhases(AbstractConnectProtocol.java:418)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connect(AbstractConnectProtocol.java:358)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:713)
at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:471)
at org.mariadb.jdbc.Driver.connect(Driver.java:105)
at java.sql.DriverManager.getConnection(DriverManager.java:175)
at java.sql.DriverManager.getConnection(DriverManager.java:209)
at com.mohammadfs.sample.MainActivity$1.run(MainActivity.java:27)
at java.lang.Thread.run(Thread.java:856)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.