Eclipse introduces an external jar that is not automatically brought in when publishing, resulting in a classnofound error

Source: Internet
Author: User

Today changed a computer reconfigure the environment to debug the old program when there is a link database error java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver hint.

Check the database connection for errors, and the previous program is ready to run. The Classes12.jar and Ojdbc14.jar files are missing from the found Lib directory after viewing in the Tomcat run directory.

However, the build path has been added to eclipse and MyEclipse, and it is not possible to clean up the compilation manually, which will run normally after the file copy is missing.

It is also possible to manually add the Lib directory and join the jar file in Eclipse and MyEclipse, but it is inconvenient and inconvenient to adjust later. After the query, in fact, very simple. Just select Project, then select Properties and Find deployment assembly select the libraries or jar you want to add to the build path.

Eclipse introduces an external jar that is not automatically brought in when publishing, resulting in a classnofound error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.