Explore Courses Blog Tutorials Interview Questions
0 votes
in Java by (13.1k points)

Can anyone help me with the exception, I was trying to run my servlet program but it is throws this exception:

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

Any help would be appreciated.

1 Answer

0 votes
by (26.7k points)

In able to rectify this error, you need to add the classes12.jar files in the lib folder of the web application and then you need to set the path. In able to do that, follow these steps:

1. Go to your project and the package explorer.

2. Click on the build path and then add external archives.

3. Select your files and then click Ok.

I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Related questions

0 votes
1 answer
asked Mar 6, 2021 in Java by Jake (7k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories