As mentioned earlier, it is not necessary for us to build OpenCms if we just want to develop code. In this case however, we want to create a library that allows us to easily reference the OpenCms java files. To do this within Eclipse, we must first go to the Window > Preferences screen and expand the Java > Build Path > User Libraries node:
Click the
New… button and enter the name of our new library, OpenCms_7RC2, and then click OK. We now specify the jar files we want to put into our library, by using the Add JARs… button. In the dialog window, navigate to the OpenCms installation and select the opencms.jar
file. Any new project we create will be able to add this Library to the build path and use the OpenCms API.