• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure oracle xe thin driver in xp

 
sudhan reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
friends i am writing progarm like this
import java.sql.*;
public class Sone{
public static void main(String arg[]){
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbcracle:thin:@localhost:1521:xe","scott","tiger");
System.out.println("hdi");
}
catch(Exception e){
System.out.println("exce"+e);
}
}
}



i am using oraclexe .i am getting class not found exception in windows xp.plsese tell me how to configure driver.
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sudhan,

your developer's tool probably let's you specify what libraries you need at runtime. I use Netbeans, and your program ran fine after I added
C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar

Herman
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic