Step 5 Adding Dependent Libraries |
A Java application may probably be dependent on other dependent libraries, therefore, it is necessary to add a dependent library before using it. For example, you need to add the SuperMap iServer.Java SDK (namely, iserver-all-{version}.jar, located in %SuperMap iServer Java_HOME%\webapps\iserver\WEB-INF\lib). to the HelloiServer project.
Right-click HelloiServer on the left side of the pane, and select Properties.
Select Java Build Path on the left side of the pop-up Properties for HelloiServer widow, then select the Libraries tab and click the Add External JARs button.
Open all dependent libraries to be added on the pop-up JAR Selection window. Finally click OK on the Properties for HelloiServer window.
This project also uses the WMS interface, so you need to add other dependent libraries, such as, cal10n-api-0.7.4.jar, commons-codec-1.4.jar, commons-io-2.0.jar, commons-logging-1.1.1.jar, httpclient-4.0.3.jar, httpcore-4.0.1.jar, log4j-1.2.16.jar, slf4j-api-1.6.1.jar, slf4j-ext-1.6.1.jar and slf4j-log4j12-1.6.1.jar, all of which can be gotten from %SuperMap iServer Java_HOME%\webapps\iserver\WEB-INF\lib.