package not found error while compiling
hi, i'm trying to connect to oracle with a java application using thin driver and i 've included the import oracle.jdbc.driver.* statement .
down the line is the code i'm using.
_
Prerequites r working such as
Java path is set
Oracle listener is working
The code we r using for jdbc connectivity in linux is mentioned below :-
import java.sql.*;
class jdbcdemo
{
public static void main(String[] args)
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@202.153.40.136:1521:orcl", "system",
"admin");
if(conn == null)
{
System.out.println("conn failed");
}
else
{
System.out.println("conn sucess");
}
}
catch(Exception e)
{
System.out.println("exception throws is"
+e.getMessage());
}
}
}
Error:- oracle driver not found
Kindly provide us with a solution is resolving this error by specifying the necessary things that we should do in order to check the connectivity for oracle in Linux.

