C: \ Users \ User> javac-encoding UTF-8 des. Java
Des. Java: 87:Error:ProgramThe Oracle. JDBC. Driver package does not exist.
Drivermanager. registerdriver (New Oracle. JDBC. Driver. oracledriver ());
^
Des. Java: 107: error: the package oracle. JDBC. driver does not exist.
Drivermanager. registerdriver (New Oracle. JDBC. Driver. oracledriver ());
^
Des. Java: 127: error: the package oracle. JDBC. driver does not exist.
Drivermanager. registerdriver (New Oracle. JDBC. Driver. oracledriver ());
^
3 errors
C: \ Users \ User> classpath
Classpath = .; c: \ Java \ JDK \ Lib \ DT. jar; C: \ Java \ JDK \ Lib \ tools. jar; D: \ apcat \ bin; D: \ classlib; C: \ Program Files (x86) \ Java \ jre6 \ Lib \ ext \ qtjava.zip
Add the following red text
C: \ Users \ User>Set classpath = .; c: \ Java \ JDK \ Lib \ DT. jar; C: \ Java \ JDK \ Lib \ tools. jar; D: \ apcat \ bin; D: \ classlib; C: \ Program Files (x86) \ Java \ jre6 \ Lib \ ext \ qtjav
A.zip;D: \ classlib \ dblib \ ojdbc14.jar
C: \ Users \ User> javac-encoding UTF-8 des. Java
C: \ Users \ User>
Error cause: javac cannot find the ojdbc14.jar driver package
Solution: Specify the path of the jar in classpath.