Barcode/JSP v3.1 comes with 3 runtime files: easybar.jar (or easybar_TRIAL.jar), BarcodeServlet.class and barcode.jsp. easybar.jar is always required; you can choose between BarcodeServlet.class and barcode.jsp depending whether you want to use a servlet or a JSP page to generate the barcode image. The servlet version is recommended as the JSP version might not be compatible with all Java application server implementations.
The easybar.jar (or easybar_TRIAL.jar for the evaluation version) file must be in your web server or application server's java CLASSPATH. Please refer to your web/application server's documentation to see how to configure this. With Apache Tomcat, for example, one way to do this is to set:
on Windows,
set CLASSPATH=%CLASSPATH%;....\easybar.jaror on Unix,
CLASSPATH=$CLASSPATH:..../easybar.jar; export CLASSPATHprior to starting Tomcat.
To use BarcodeServlet, you'll need to copy the BarcodeServlet.class file to the servlet directory as defined by your app server.
To use barcode.jsp, you'll just need to place barcode.jsp in a directory that's served by your web server.
As of version 3.0 of Barcode/JSP, running your web server in a GUI environment (e.g. X-Window) is no longer a requirement, unless you want choose your own fonts. As of version 3.1, barcode image rotation is also supported without requiring GUI.