i am trying to execute the below simple
java program
but i am getting the below error..
getting the below compilation error, seems to be too weired.
C:\Documents and Settings\gopc\workspace\JDBC_Connection\src>javac SqlConnection.java
SqlConnection.java:9: error: incompatible types
con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Acess Driver (*.accdb)}; DBQ=C:\\Users\\gopc\\odbc_sql.accdb","","");
^
required: Connection
found: java.sql.Connection
SqlConnection.java:10: error: cannot find symbol
Statement statement = con.createStatement();
^
symbol: method createStatement()
location: variable con of type Connection
2 errors
C:\Documents and Settings\gopc\workspace\JDBC_Connection\src>