Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / February 2004

Tip: Looking for answers? Try searching our database.

Adding jdbc driver to classpath

Thread view: 
Rohan Parkes - 02 Feb 2004 08:48 GMT
I have the new J2EE package, but am having trouble understanding how to
add the jdbc driver to my classpath. Several books/articles tell me to
"make sure the jdbc driver is in your classpath", but they don't say
where it is. I'm assuming it's a jar file, but I can find quite a few
with jdbc in the file name.

I'm using the PointBase sample db.
Signature

Rohan Parkes
Melbourne
Australia

kevin - 03 Feb 2004 11:22 GMT
> I have the new J2EE package, but am having trouble understanding how to
> add the jdbc driver to my classpath. Several books/articles tell me to
[quoted text clipped - 3 lines]
>
> I'm using the PointBase sample db.

the classpath will be an environment variable somewhere. On a windows
computer it might be set in config.sys, or in the setup/options of
your IDE.
My IDE is forte, and this builds it's own classpath from the
directories and jars mounted into each project.

Look in the help for your IDE about CLASSPATH, or mounting directories
and jar files. Your jdbc driver is probably in a jar file. The name
will depend on the database. My pointbase demo stuff has /lib jar
files starting pbxxx35RE.jar

i suspect these are your babies. mount one into your project and try a
compile.

kev.
Rohan Parkes - 06 Feb 2004 15:42 GMT
> > I have the new J2EE package, but am having trouble understanding how to
> > add the jdbc driver to my classpath. Several books/articles tell me to
[quoted text clipped - 14 lines]
> will depend on the database. My pointbase demo stuff has /lib jar
> files starting pbxxx35RE.jar

Thanks - I seem to have it working more or less now.

Signature

Rohan Parkes
Melbourne
Australia



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.