• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.gjt.mm.mysql.Driver

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your explanation.
Andrew
 
reply
    Bookmark Topic Watch Topic
  • New Topic