|
Re: help with a error
|
Posted: Dec 2, 2002 8:09 AM
|
|
I don't know what you mean by "visual compostion", but if you mean a program like JBuilder or IDEA, that could be a message unique to it - I don't know, I can't use those tools on this machine. But it looks to me like what it's telling you is that your line "Connection conn = DriverManager.getConnection(data,"","");" isn't understood. I usually declare my connection object as a Connection (as in "public Connection conn;") after importing java.sql.* - that's imported in your code, yes? And those parameters for getConnection() - they're all valid, right?
Also, I usually have to use newInstance() with that Class.forName() call - as in "Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();"
Lynn.
|
|