How to Generate EAN-13 in Java Application

How to Create & Add EAN-13 Barcodes in Java Class
  • The created barcodes are compatible with the latest EAN -13 barcode specification
  • This KA.Barcode for Java supports JDK 1.5.0_22 and later versions
  • EAN-13 Barcode Generator for Java is tested in IntelliJ IDEA 5.0 and iReport 3.7.5
  • It can be operated in multiple operating systems, including Windows 7, Windows Vista, etc
  • It generates high quality EAN-13 barcode images in Java class easily
  • EAN-13 barcodes can also be created in iReport and Eclipse BIRT
  • Rich EAN-13 barcode parameters are available to be adjusted
  • The EAN-13 barcodes are created in PNG, BMP, GIF and JPEG image formats
EAN-13 Barcode Generator for Java Description
EAN-13 barcode generator for Java is professional in creating high quality EAN-13 and many other linear and 2D barcodes in Java class. It also supports to create barcodes in iReport and BIRT. Additionally, flexible barcode settings with detailed tutorials are provided. So developers can customize their barcodes easily.
EAN-13 Barcode Overview in Java
EAN-13 is a continuous and self-checking symbology which has fixed data length (13 digits, including the check digit). It is originally adopted in supermarkets to identify products at the point of salse.
EAN-13 Encodable Character Set
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
EAN-13 Data Length
  • 13 digits (Please just input 12 digits, for KA.Barcode automatically add the last check digit for you)
Download EAN-13 Barcode Generator for Java
With this KA.Barcode for Java barcode generator, users can create most linear and 2D barcode images in Java. It is free of charge and you can download it now. Unzip it to get:
  • com.keepautomation.barcode.jar
  • "barcode" folder & "java-barcode-api" folder
  • End user license agreement, user manual, and order page
Tips: Although our KA.Barcode for Java barcode generator evaluation version is free of charge and can be used permanently, a "KA Barcode" watermark may appear on your generated barcode images.
EAN-13 Barcode Generation in Java Class

KA.Barcode for Java Installation
  1. At first, download and unzip our free evaluation version of KA.Barcode for Java.
  2. Next, copy "com.keepautomation.barcode.jar" file from the unzipped package to your Java project library folder.
  3. Finally, locate "com.keepautomation.barcode.jar" to your project reference.
EAN-13 Creation in Java Class with Sample Code
A sample Java class code for inserting an EAN-13 barcode in Java class is presented below. What needs to be mentioned here is that the parameters of EAN-13 are easy to be adjusted. Developers can create the barcodes they want through changing the barcode parameters.
Sample code
     public static void main(String[] args)
{

BarCode ean13 = new BarCode();

ean13.setCodeToEncode("123456789999");
ean13.setSymbology(IBarCode.EAN13);
ean13.setX(2);
ean13.setY(50);
ean13.setRightMargin(0);
ean13.setLeftMargin(0);
ean13.setTopMargin(0);
ean13.setBottomMargin(0);

try
{

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

}
catch (Exception e) {
e.printStackTrace();
}
}
}
Insert EAN-13 in iReport Through JRRenderable Implementation
Besides Java class, KA.Barcode for Java can also generate high quality barcodes in iReport through JRRenderable implementation. To read more information about how to add barcodes in iReport through JRRenderable implementation, please download KA.Barcode for Java free trial package and view the user manual in it.
Add EAN-13 in iReport Through Servlet Web Application
KA.Barcode for Java also supports to insert EAN-13 and many other barcodes in iReport through servlet web application. Detailed information about how to create barcodes in iReport through servlet web application can be read in the user manual of KA.Barcode for Java free trial package.
Free Trial DownloadJava Class EAN-13iReport EAN-13Data Matrix for JavaPDF417 for JavaQR Code for JavamoreCodabar for JavaCode 39 for JavaCode 128 for JavaEAN-8 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 document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, 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.