4

[solved] java and oracle

view full story
linux-howto

http://crunchbanglinux.org – does anyone know how to get java to connect to a oracle xe database?i tried using this code but i get error 1 which means it cannot find the db driverstatic void Connect(){ Connection connection = null; try { // Load the JDBC driver String driverName = "oracle.jdbc.OracleDriver"; String driverName = "oracle.jdbc.driver.OracleDriver"; Class.forName(driverName); // Create a connection to the database String serverName = "127.0.0.1"; String portNumber = "1521&quo (HowTos)