[Oracle] Comment me connecter avec eclipse
Salut !!
Je voudrais me connecter avec JDBC (sous eclipse) à ma base oracle XE !
J'ai fais sa :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| public class TestJdbc{
private static Connection c=null;
TestJdbc() throws SQLException{
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
c=DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:oracle", "SYSTEM", "PASS");
}
catch(ClassNotFoundException s){System.out.println("erreur : "+s);}
}
} |
J'ai mi le driver sous eclipse !
L'url de la base j'ai mi un peu nimporte quoi car je ne sais pas quoi mettre.
Pour acceder a ma base via IE je fait "http://localhost:8080/apex"
Voila merci de m'aider , je debute !
A+