Java Servlets are used to add barcode support to a dedicated webserver.
IDAutomation's Servlet is compatible with all browsers and is easy to
embed in HTML as an image with the <IMG>
tag. These Java Servlets can be hosted on a client's server and
easily streamed to the desired application.
Linear Servlet Barcode Example:
Install or verify use of Java (JDK or JRE) 1.2 or above. The encoder requires
Java 1.2 or above to generate the image files used by the
servlet. When possible, IDAutomation recommends installing the latest version of
Java that is available.
Special requirements for Linux and Unix servers:
Be sure Java.awt GUI functions are available in the environment.
This is not usually an issue with Windows® servers. In Unix or Linux,
if the Java environment has the java.awt library stripped out,
the Java products will not be able to generate images.
If the server does not have an X-Window environment, either
(1) use Headless Java or (2) connect to a remote X Server or
(3) install the X Windows environment and run an X Windows session
or (4) install an emulator, PJA library or virtual frame buffer
as described in the
XWindow Error Document.
purchase the necessary IDAutomation Java Barcode Package and set the
CLASSPATH environment variable to include all JAR files that need to be
implemented. For example: CLASSPATH = C:\Program Files
Install Apache Tomcat according to the instructions and setup the
required environment variables. In this example the following environment
variables are set: CATALINA_HOME =
C:\apache-tomcat-8.0.32 JRE_HOME = C:\Program Files
Place the LinearBarCode.jar file in the /WEB-INF/lib directory
of the appropriate WebApp. Since this example will use the root WebApp, the file
is placed in "C:\apache-tomcat-8.0.32\webapps\ROOT\WEB-INF\lib".
If the lib folder does not
exist it will need to be created.
Edit the web.xml in the appropriate /WEB-INF/ directory for
the WebApp. Insert the following lines in the Servlet Mappings section before
</web-app> to map a
servlet-class to a URL:
Restart the Apache Tomcat server by either restarting the service
or executing the appropriate control scripts per system configuration. In this
example shutdown.bat and startup.bat are executed from