Benches Uncategorized

2

How do I install JDBC driver on 10.5

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I am learning Servlet and JSP web development using Eclipse, but I could not get the JDBC connection right. The error message I got was "no suitable driver"

I download the JDBC driver from here:
http://www.oracle.com/technology/software/tech/java/sqljjdbc/htdocs/jdbc10201.html

and put the jar file into "/Library/Java/Home"

I checked the class using Class.forName()

Class.forName("oracle.jdbc.driver.oracleDriver");

It could not find the class at all. I don't know what I did wrong.

Any suggestions?

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    xnav

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Try putting the jar into "/Library/Java/Home/lib". Note, this is an alias for "/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib"

  2. 0

    Kann

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I got it work now. Thanks so much!