I am new to Java development and am having trouble with database access.
Actually, the code works on my development machine where I have installed the development kit but it does not work on the staging machince where I have only installed the Java Runtime Environment.
This is my code:
This is the error I am receiving.
java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver
My first thought is that the Java environment is not setup correctly and I have found web sites that verify this. What I can not find is how to correct the problem.
Can anyone tell me what I need to do on my staging computer to get this working?
Thank you for your help.
Gabe
Actually, the code works on my development machine where I have installed the development kit but it does not work on the staging machince where I have only installed the Java Runtime Environment.
This is my code:
Code:
import java.sql.*;
…
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver" );
This is the error I am receiving.
java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver
My first thought is that the Java environment is not setup correctly and I have found web sites that verify this. What I can not find is how to correct the problem.
Can anyone tell me what I need to do on my staging computer to get this working?
Thank you for your help.
Gabe