System and 1234 are the User name and Password for my local machine database.I have already created a table named a and I am trying to insert a value into it's attribute. I am however getting this exception"Class not found Exceptionracle.jdbc.driver.OracleDriver" Should I specifically look into anything?/ Oracle in my machine is running on port 8081 and I have already included the following import statements:
I have added the oracle driver(The Jar file) to My System's class path and I have opened a new window and tried to run the program but it's still giving the same error. I have also checked the Service name(XE) and the Port Number(1521) from the TnsNames.Ora file.
I've found the problem. I have added the oracle driver to the class path but forgot to include the .jar along with the file name. Thanks for looking in guys.
Wow, you woke up an old post. Better create a new post next time.
Please first start with cleaning up your classpath.
C:\Program Files\Java\jdk1.5.0_17\bin is no location to have on your classpath. Because it does not contain any java classes, and you are using java version "1.6.0_13" . Why did you add it to your classpath?
Then, check out the appropriate Oracle drivers for java version "1.6.0_13", and use them *only*. Check out Oracle web for more info.
currently you mixed these two:
C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14_g.jar
C:\oracle\product\10.2.0\db_1\jdbc\lib\classes12.jar
Then, please post the exact error message you get, rather than "I HAVE A SAME PROBLEM............ "
OCUP UML fundamental
ITIL foundation
JIA Jerry
Greenhorn
Joined: Apr 28, 2009
Posts: 2
posted
0
Hi there
I fixed the problem by replacing the jdbc file.