How to connect to oracle database trough java program?

in my system i have loaded Oracle 9i and set the path in environmental variables like path,classpath. Buit when i run my jdbc program iam getting exception Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC driver for Or acle][Oracle] at... show more in my system i have loaded Oracle 9i and set the path in environmental variables like path,classpath.
Buit when i run my jdbc program iam getting exception
Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC driver for Or
acle][Oracle]
at sun.jdbc.odbc.JdbcOdbc.createSQLExceptio... Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unk... Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(... Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initial... Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unk... Source)
at java.sql.DriverManager.getConnection(Unk... Source)
at java.sql.DriverManager.getConnection(Unk... Source)
at testjdbc.main(testjdbc.java:7)
3 answers 3