

Click the Add JARs button and select your JAR file from within the lib folder. Before the start, please check if you have the Eclipse IDE installed on your system. In the Libraries tab, just click on Add JARs if the jar is already in the Eclipse workspace or click on Add External JARs if the jar is. I am using Eclipse, Tomcat, Hibernate 2.0.3, Struts, and Velocity.

This can be accomplished using the Libraries tab. DOM4J and Hibernate: Dealing with the XML. A common requirement seen while developing java applications is to add existing jars to the java build path.
#ECLIPSE HOW TO INSTALL DOM4J CODE#
Select Java Build Path followed by the Libraries tab. By default Eclipse indents code with a tab character this configuration can be changed to use spaces from the preferences under the window menu option. On the left hand side tree select Java Build Path. Selecting the Project tab at the top of the screen, and click Properties. group: '4j', name: 'dom4j', version: '1.6.1-hudson-3' // '4j:dom4j:1.6.1-hudson-3' // ( "4j:dom4j:1.6.1-hudson-3") // += "4j" % "dom4j" % "1.6.1-hudson-3" // '4j', module= 'dom4j', version= '1.6. Drag and drop your jar folder into the new lib folder, and when prompted select Copy Files. Right click on the Hibernate4HelloWorldProject in project explorer and then select properties.
