Hi!
Sir, First of all i want to thank this site for providing such good information.
coming to problem am facing problem in executing the below program and am gettng the error pasted at bottom after the program....
please help me in this case
if the problem is with setting the path please give me a detailed explanation of setting the path.
import java.sql.*;
import java.lang.*;
public class AviDemo
{
public static void main(String a[]) throws Exception
{
System.out.println("...............Hello.......... ");
try
{
Class.forName("jdbc.oracle.OracleDriver");
Connection con=DriverManager.getConnection("oralce:jdbc:thin: localhost@:1521:xe","system","123");
}catch(Exception e)
{
e.printStackTrace();
}
System.out.println("Connected");
}
}
...............Hello..........
java.lang.ClassNotFoundException: jdbc.oracle.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at AviDemo.main(AviDemo.java:12)
Connected