Why did I import the dom4j jar package in the Eclipse project but still fail to instantiate the SAXReader class?
Cause: the jar package is not imported correctly.
One of the methods to import the jar package correctly:
1. Drag the jar package directly to the WebRoot/WEB-INF/lib directory of the project:
After the dialog box is displayed, select Copy or Link. (If you have a fixed Jar directory, you can use Link. If you want to use the project wherever it is migrated, you 'd better use Copy):
2. Right-click the jar file in the project and add it to the Build Path of the project: <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140325/20140325092918273.png" alt = "\">
3. Run it again. It should be okay. If the problem persists, restart the Server:
Complete.