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 Exception:oracle.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.
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:
Then, please post the exact error message you get, rather than "I HAVE A SAME PROBLEM............ "
OCUP UML fundamental and ITIL foundation
posted 11 years ago
I fixed the problem by replacing the jdbc file.