Hi, I want to know: What is org.gjt.mm.mysql.Driver? what is org.gjt? Class.forName("org.gjt.mm.mysql.Driver").newInstance(); and some program uses import twz1.jdbc.mysql.*; What are their difference and when should I use the import one? Thanks for explain. Andrew
Marilyn de Queiroz
Joined: Jul 22, 2000
org.gjt.mm.mysql.Driver is the package containing the mySQL driver. I don't know why the author created this package name, perhaps because it was (originally?) at www.gjt.org in the mm/mysql subdirectory??
import twz1.jdbc.mysql.*; Is this from a book? Perhaps they distributed some files with the book where the driver is in the twz1.jdbc.mysql package.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt