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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to configure oracle xe thin driver in xp
 
Similar Threads
problem connecting to postgres 8.2.3
jdbc to get schema user information
Java Connectivity in Oracle
Java Database Connectivity
REG: Applet Database Connectivity