I am creating a java game and I need to upload it to web, I discovered the webswing that converts the jar to a web version, I tested it to jar without database connection and it worked, but when I try to connect to a mysql database it return a error:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/dreamland
Error into webswing executable
I am using xampp to localhost database and I don't know if it's because that it can not connect
Picture of all applications on webswing
The "jogoDreamland" application is the one that's getting the error
Configuration of "jogoDreamland"
I only modified these two, the class path I added the path to where my main class is on the project and on main class I added the package.formsLogin
The buttons that causes the errors
When I click one of these two buttons it returns the error from above, when I launch it on desktop, it runs normally and connect to the database, the problem is when I use it on webswing
The connection to the database
Code that the method on the button runs, that use the db
Another code that the method on the button runs, that use the db
Currently, only these two methods are loaded when I click the button.