There's no special requirement for using the files. Below are instructions for those who are relatively new to Java or to Java servlet environments.
On Windows,
set CLASSPATH=%CLASSPATH%;...\easybar.jar
On Unix (Bourne Shell),
CLASSPATH=$CLASSPATH:.../easybar.jar; export CLASSPATH
(Replace ... by the actual path of the file.)
As a general rule, the jar file should go into the jar directory of the server, and the servlet file a specific application directory; you may need to map the servlet path such that it is accessible. The below instructions apply to Apache Tomcat.
<servlet>
<servlet-name>BarcodeServlet</servlet-name>
<servlet-class>BarcodeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>BarcodeServlet</servlet-name>
<url-pattern>/BarcodeServlet</url-pattern>
</servlet-mapping>