How to connect to a local mysql database on webswing?

QuestionsHow to connect to a local mysql database on webswing?
sethbeckerman5 Staff asked 4 years ago

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:

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
mysql connector version
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.


View on Stack Overflow