Hello everyone,
I've recently started working with the Velocity API and encountered an issue when trying to connect my plugin to a MySQL database. I've added the mysql-connector-j Maven dependency, but I keep running into an SQLException with the message "No suitable JDBC driver found."
The strange part is that connecting to MySQL works perfectly fine in other programs and plugins, but for some reason, this error only occurs when using the Velocity API.
Does anyone have an idea what might be causing this? Any help would be greatly appreciated!
Thanks in advance!
Error message: https://pastebin.com/5VEHaJPH
pom.xml (repository and dependencies): https://pastebin.com/2d756Sf1
using JDK 22
I've recently started working with the Velocity API and encountered an issue when trying to connect my plugin to a MySQL database. I've added the mysql-connector-j Maven dependency, but I keep running into an SQLException with the message "No suitable JDBC driver found."
The strange part is that connecting to MySQL works perfectly fine in other programs and plugins, but for some reason, this error only occurs when using the Velocity API.
Does anyone have an idea what might be causing this? Any help would be greatly appreciated!
Thanks in advance!
Error message: https://pastebin.com/5VEHaJPH
pom.xml (repository and dependencies): https://pastebin.com/2d756Sf1
using JDK 22
- Version Output
-
Velocity 3.4.0-SNAPSHOT (git-4aa9ee77-b455)
Copyright 2018-2024 Velocity Contributors. Velocity is licensed under the terms of the GNU General Public License v3.
PaperMC - GitHub