Hi Mamad,
They’re not the same in plugin. I have tested with MySQL and reproduced your problem exactly with Class.forName but solved by DriverManager.registerDriver.
I saw you’re using SQL Server with windows authentication, it could be another problem.
Did you get the same exception after change to DriverManager.registerDriver?
If problem still exists, I’ll with SQL server and provide a working example.