Java Code 39 Barcode Generator

Generate, draw & print Code 39 in Java applications with Java barcode generation component
Java Barcode Trial Package
Download
Java Barcode Trial Package
Code 39 Barcode Generator for Java - Benefits
To Encode, Draw 1D Barcode Code 39 with Barcode Generator for Java

Available JDK

JDK 1.4.0 and above is supported.

Available Java Client Applications

Easy to generate and draw Code 39 barcode in Java Class, Swing, Applet, Java Bean, J2SE.

Servlet

Servlet with Apache Tomcat is compatible with all browsers and easy to embed in HTML as an image with the tag.

Rich Barcode properties

Simple to output high-quality Code 39 barcode images with customized color, resolution and orientation
Show or hide human-readable text and checksum digit for Code 39 barcodes

Barcode Image Formats

Easily draw, print & stream high-quality Code 39 barcode images into GIF, PNG, JPEG & BITMAP with customized background and background color, orientation, resolution.

Support ISO Standard

Compatible with ISO / IEC 16388 (2nd edition 2007-05-15)
Java Code 39 Barcode Generator --- Overview
Java Code 39 Generator can easily generate Code 39 images in Java Client applications, such as Java Class, Swing, Applet, Java Bean, J2SE. JDK 1.4.0 and above are supported. Code 39 image orientation can be set to 0, 90, 180, 270 degrees

Code 39 Introduction

Code 39 is also called “Code 3/9”, “code 3 of 9”, “USS Code 39”, “Alpha 39” and “USD-3”. It is an variable- length, discrete, alpha-numeric barcode symbology, which is still widely used-especially in non-retail environments. It is the standard bar code used by the United States Department of Defense, and is also used by the Health Industry Bar Code Council (HIBCC).
Java Code 39 symbology encodes:
  • Numeric Characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Uppercase letter: A-Z
  • Special characters: - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Java Code 39 Generator --- Generating Barcode

Generate Code 39 in Java class by customizing barcode properties.

// Create Java Code25 object
Code25 barcode = new Code25();
// Set barcode data text to encode
barcode.setData("87654321");
// Generate barcode & print into Graphics2D object
barcode.drawBarcode("Java Graphics2D object");
// Generate barcode & encode into GIF format
barcode.drawBarcode("C://barcode-code39.gif");
// Generate barcode & encode into JPEG format
barcode.drawBarcode("C://barcode-code39.jpg");

Generate & encode Code 39 to EPS by changing the concerned values.

// Create Java barcode object
Codbar barcode = new Code39();
// Set barcode data text to encode
barcode.setData("87654321");
// Generate barcode & encode into EPS format
barcode.drawBarcode2EPS("C://barcode-code39.eps");

Generate & encode Code 39 in html or jsp pages.

Add barcode folder and its contents from demo package to Apache Tomcat.
Start Apache Tomcat, go to http://YourDomain:Port/barcode/barcode?DATA=87654321&TYPE=CODE39
Add an image tag (img) into your target page. Like following one,

Customize the width and height of generated Code 39 image

You can choose to set the values of the barcodeWidth and barcodeHeight properties or set Code 39 (bar module width) and Y (bar module height) values.
(For more Code 39 properties setting, see Code 39 properties)
Java Code 39 Generator --- Setting Code 39 Properties

Code 39 Basic Settings