aspose file tools*
The moose likes JDBC and the fly likes How to configure oracle xe thin driver in xp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to configure oracle xe thin driver in xp" Watch "How to configure oracle xe thin driver in xp" New topic
Author

How to configure oracle xe thin driver in xp

sudhan reddy
Greenhorn

Joined: Apr 07, 2007
Posts: 7
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

Joined: Jul 17, 2006
Posts: 387
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure oracle xe thin driver in xp