| Author |
problem in type 4 driver
|
Punit Jain
Ranch Hand
Joined: Aug 20, 2011
Posts: 902
|
|
i m getting an error in this code..
error is in these two line:
and error is:
although i have added mysqlConnector to my jar files, but still i m getting the same error..???
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
You should never import any driver specific classes, but instead program against the JSE interfaces. You've probably used an IDE to resolve the import and chose the wrong one. So instead of importing com.mysql.jdbc.Statement, import java.sql.Statement.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Punit Jain
Ranch Hand
Joined: Aug 20, 2011
Posts: 902
|
|
yeah , i m using IDE..
thanks...
|
 |
 |
|
|
subject: problem in type 4 driver
|
|
|