Thread: Classpath

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    3
    Rep Power
    0

    Question Classpath


    I am trying to access the database via java using asp..
    basically the java part accessing the database rather than asp
    but when I get the the function that accesses the database i get a Classnotfound exception on the class.forname("jdbc.odbc.jdbcodbcdriver")
    the class works fine as a stand alone.. but when it comes to the ASP part I get that Exception.. Somebody on the forum told me that there might be a classpath problem.. but I am new to this and would like to know how to set the classpath

    How do I set the Classpath so ASP can read the odbc drivers?
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    there is no need to set classpath for drivers...it will be already set...and the code for loading the driver is
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); check it out

    best wishes...

IMN logo majestic logo threadwatch logo seochat tools logo