How to Generate Code 39 in Java Application

How to Generate & Create Linear Code 39 Barcode Images in Java
  • An easy-to-use Code 39 barcode generator for Java
  • Entirely consistent with ISO/IEC 16388 (2nd edition 2007-05-15)
  • Totally compatible with Java SDK 1.4.2 and later versions
  • Professional barcode generator completely written in Java
  • Easy to create high quality Code 39 barcodes in Java class
  • Support Code 39 generation in iReport and Eclipse BIRT Java reporting software
  • Support four image formats: PNG, BMP, GIF and JPEG
Java Code 39 Barcode Generator Introduction
KA.Barcode for Java is an advanced barcode generator which is very professional in creating great quality Code 39 barcodes and many other 1D and 2D barcode symbologies in Java class. Users can adjust the parameters of the barcodes easily.
Code 39 Barcode Overview in Java
Code 39 is a discrete and self-checking symbology which has variable data length. It is also called Alpha39, Code 3 of 9, Type 39, USS Code 39 and USD-3. This barcode is widely adopted in non-retail fields.
Code 39 Encodable Character Set
  • Alphanumeric data: 0-9, A-Z
  • Special characters: space $ % + - . /
  • Start/stop character *
Download Code 39 Barcode Generator for Java
Customers are free to download this evaluation version of KA.Barcode for Java. Once you unzip the evaluation version, you can see:
  • com.keepautomation.barcode.jar
  • "barcode" folder & "java-barcode-api" folder
  • End user license agreement, user manual, and order page
Note that: Customers can use this evaluation version permanently. However, the generated barcode images will include a "KA Barcode" watermark randomly.
Create Code 39 Barcode Image in Java Class

Install KA.Barcode for Java
  1. Download KA.Barcode for Java package and unzip it.
  2. Find "com.keepautomation.barcode.jar" file and copy it to your Java project library folder.
  3. Add "com.keepautomation.barcode.jar" to your project reference.
Generate Code 39 in Java Class with Sample Code
A sample code for generating a Code 39 barcode in Java class is presented below. The properties of Code 39 are adjustable. So you can create the barcodes you want by changing the properties.
Sample code
     public static void main(String[] args)
{

BarCode code39 = new BarCode();

code39.setCodeToEncode("123456789");
code39.setSymbology(IBarCode.CODE39);
code39.setX(2);
code39.setY(50);
code39.setRightMargin(0);
code39.setLeftMargin(0);
code39.setTopMargin(0);
code39.setBottomMargin(0);
code39.setChecksumEnabled(false);
code39.setDisplayStartStop(true);
code39.setWideNarrowRatio(2.0f);

try
{

code39.draw("c://code39.gif");

}
catch (Exception e) {
e.printStackTrace();
}
}
}
Generate Code 39 in iReport Through JRRenderable Implementation
KA.Barcode for Java also supports to insert Code 39 barcodes in iReport through JRRenderable implementation. If you want to read detailed information about how to generate barcodes in iReport through JRRenderable implementation, please refer to the user manual in the KA.Barcode for Java free trial package.
Create Code 39 in iReport Through Servlet Web Application
Users can also use KA.Barcode for Java to add Code 39 barcodes in iReport through servlet web application. For more information about how to generate barcodes in iReport through servlet web application, please read the user manual in the KA.Barcode for Java free trial package.
Free Trial DownloadJava Class Code 39iReport Code 39Data Matrix for JavaPDF417 for JavaQR Code for JavamoreCodabar for JavaCode 128 for JavaEAN-8 for JavaEAN-13 for JavaEAN 128 for JavaIntelligent Mail for JavaInterleaved 2 of 5 for JavaISBN for JavaITF-14 for JavaRM4SCC for JavaUPC-A for JavaUPC-E for Javamore
KeepAutomation provides complete barcode automation solutions for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. We recommend the customers use high quality ASP.NET html5 document viewer, c# pdf sdk, C# merge PDF files, Split PDF in C#, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.