@@ -58,18 +58,6 @@ public class CreateTableInsertRows {
58
58
String user = " myadmin@mydemoserver" ;
59
59
String password = " <server_admin_password>" ;
60
60
61
- // check that the driver is installed
62
- try
63
- {
64
- Class . forName(" org.mariadb.jdbc" );
65
- }
66
- catch (ClassNotFoundException e)
67
- {
68
- throw new ClassNotFoundException (" MariaDB JDBC driver NOT detected in library path." , e);
69
- }
70
-
71
- System . out. println(" MariaDB JDBC driver detected in library path." );
72
-
73
61
Connection connection = null ;
74
62
75
63
// Initialize connection object
@@ -161,18 +149,6 @@ public class ReadTable {
161
149
String user = " myadmin@mydemoserver" ;
162
150
String password = " <server_admin_password>" ;
163
151
164
- // check that the driver is installed
165
- try
166
- {
167
- Class . forName(" org.mariadb.jdbc" );
168
- }
169
- catch (ClassNotFoundException e)
170
- {
171
- throw new ClassNotFoundException (" MariaDB JDBC driver NOT detected in library path." , e);
172
- }
173
-
174
- System . out. println(" MariaDB JDBC driver detected in library path." );
175
-
176
152
Connection connection = null ;
177
153
178
154
// Initialize connection object
@@ -248,18 +224,6 @@ public class UpdateTable {
248
224
String user = " myadmin@mydemoserver" ;
249
225
String password = " <server_admin_password>" ;
250
226
251
- // check that the driver is installed
252
- try
253
- {
254
- Class . forName(" org.mariadb.jdbc" );
255
- }
256
- catch (ClassNotFoundException e)
257
- {
258
- throw new ClassNotFoundException (" MariaDB JDBC driver NOT detected in library path." , e);
259
- }
260
-
261
- System . out. println(" MariaDB JDBC driver detected in library path." );
262
-
263
227
Connection connection = null ;
264
228
265
229
// Initialize connection object
@@ -330,18 +294,6 @@ public class DeleteTable {
330
294
String database = " quickstartdb" ;
331
295
String user = " myadmin@mydemoserver" ;
332
296
String password = " <server_admin_password>" ;
333
-
334
- // check that the driver is installed
335
- try
336
- {
337
- Class . forName(" org.mariadb.jdbc" );
338
- }
339
- catch (ClassNotFoundException e)
340
- {
341
- throw new ClassNotFoundException (" MariaDB JDBC driver NOT detected in library path." , e);
342
- }
343
-
344
- System . out. println(" MariaDB JDBC driver detected in library path." );
345
297
346
298
Connection connection = null ;
347
299
0 commit comments