File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes getting started Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "getting started " Watch "getting started " New topic

getting started

Vladimir Kositsky
Ranch Hand

Joined: Nov 03, 2000
Posts: 116
I am trying to make initial set up for my system(Windows98,SQL 7, JDK 1.2.2)to run sample JDBC programs.
I need advise how set class path( i've got ClassNotFoundException) and i suggest i have some problems with JDBC-ODBC bridge, 'couse i've got SQLException as well
How can i make sure that this driver is installed? I was looking for it in Control Panel -> ODBC, it does not appear there.
Thanks in advance
venu patlori

Joined: Jan 27, 2001
Posts: 12
hi! Vladimir
go the windows autoexec.bat file ,open the file and set the classpath and path in this way.check out for the jdk version you have.
set path=c:\jdk1.3\bin;.;c:\weblogic\bin;c:\windows\command;%path%
set classpath=c:\jdk1.3\lib\tools.jar;.;c:\weblogic\lib\weblogicaux.jar;c:\weblogic\lib\weblogicbeans.jar;%classpath%
you must create a dsn in odbc for the particular database you use. and use the same in you java code along with the driver.
Vladimir Kositsky
Ranch Hand

Joined: Nov 03, 2000
Posts: 116
Hi Venu,
thank for reply!
Could you give me more details about dsn?
Should i use MS Access?
I agree. Here's the link:
subject: getting started
It's not a secret anymore!