ich habe folgenden Code:
Code
java.sql.Driver d = (java.sql.Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Properties prop = new Properties();
prop.put ("user", "test");
prop.put ("password", "test");
fDBConnection = DriverManager.getConnection("jdbc:oracle:thin:@bu1000:1526:tset", prop);
wenn ich ihn ausführe, dann gib es folgenden Fehler:
Code
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at ch.swisslife.prov.dialog.DokApr_DBConnection.<init>(DokApr_DBConnection.java:29)
at ch.swisslife.prov.dialog.TestMain.<init>(TestMain.java:44)
at ch.swisslife.prov.dialog.TestMain.main(TestMain.java:103)
Alles anzeigen
und ich habe keine ahnung warum?