Java QR Code Generator Library
Generate QR Code barcode image in Java class, applet program with free download Java open source example code.
How to generate, display, print QR Code barcode image in Java class, applet program with free Java open source example code without using font. Free download.
- Professional and advanced Java library component for QR Code generation
- Compatible with almost all operating systems, like Windows XP, Vista, Server 2003, etc
- Written and created in Java completely and provide barcode generation example
- Completely compatible with Java SDK 1.4.2 and later versions
- Barcode creation in accordance with the latest QR Code barcode specification
- Free tutorial for creating high quality QR Code barcodes in Java class quickly
- Support to display QR Code symbol in iReport, Eclipse BIRT Java reporting software
- Support four barcode image rotation settings: 0, 90, 180, 270 degrees
- PNG, BMP, GIF and JPEG four image formats supported by this barcode generator
Java QR Code Barcode Generator Overview
QR Code barcode generator for Java is a mature and reliable barcode generator which supports inserting high quality QR Code barcodes in Java class. The multiple created pictures are compatible with the latest QR Code barcode specification. It is allowed to specify QR code size, readable text, and other properties.
QR Code Overview
QR Code, abbreviated from "Quick Response Code", is a frequently-used matrix barcode which is created by Denso Wave in 1994. This barcode is originally designed for the automotive industry and it is widely adopted in advertising, packaging, commercial tracking, etc.
It encodes:
- Numeric data (digits 0-9)
- Alphanumeric data (digits 0-9; upper case letters A-Z; nine other characters: space $ % * + - . / :)
- Kanji Characters
- Byte data: (ISO/IEC 8859-1)
QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is a matrix code (or two-dimensional bar code) created by Japanese corporation Denso-Wave in 1994.
QR Code Character Set Encoding
QR Code encoding characters
- numeric data (digits 0 - 9)
- alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : )
- byte array data (default: ISO/IEC 8859-1; or other sets as otherwise defined)
- Kanji characters. Kanji characters in QR Code can be compacted into 13 bits.
Java QR Code Generator library supports all of the above characters encoding in QR Code.
QR Code maximum data length in Java
Maximum data characters per QR Code with Version 40 and ECL (level L) applied
- numeric data: 7,089 characters
- alphanumeric data: 4,296 characters
- byte data: 2,953 characters
- Kanji data: 1,817 characters
In the Java class, if your encoding characters size exceeds the maximum characters, the Java barcode genertor library will print an empty image with "Invalid Settings" printed.
QR Code symbol size and versions in Java
There are forty sizes of QR Code barcode referred to as Version 1, Version 2 ... Version 40.
Version 1 measures 21 modules x 21 modules, Version 2 measures 25 modules x 25 modules and so on increasing in steps of 4 modules per side up to Version 40
which measures 177 modules x 177 modules.
In your Java application, you could use the method setQrCodeVersion() to customize your generated QR Code versions.
QR Code Data Mode in Java
QR Code includes the following data modes
- Numeric mode: Numeric mode encodes data from the decimal digit set (0 - 9) (byte values HEX 30 to HEX 39).
- Alphanumeric mode: Alphanumeric mode encodes data from a set of 45 characters. 10 numeric digits (0-9); 26 alphabetic characters (A - Z); 9 symbols (SPACE, $, %, *, +, -, ., /, :)
- Byte mode: In this mode, the QR Code data is encoded at 8 bits per character.
- Kanji mode: The Kanji mode efficiently encodes Kanji characters in accordance with the Shift JIS system based on JIS X 0208.
If you do not know how to choose the best data mode for your encoding data characters, you could use the AUTO mode. Java QR Code generator library will choose
the best data mode for you.
QR Code Error Correction Level (ECL) in Java
Four levels of Reed-Solomon error correction (referred to as L, M, Q and H in increasing order of data recovery capacity) allowing recovery of the QR Code barcode data.
- L: 7%
- M: 15%
- Q: 25%
- H: 30%
In the Java program, you could use the method setQrCodeEcl(IBarCode.QR_ECL_L) to customize the ECL in QR Code.
Download QR Code Barcode Generator for Java
Download and unzip the free trial version of KA.Barcode for Java and you will find the following items:
- com.keepautomation.barcode.jar
- "barcode" folder & "java-barcode-api" folder
- End user license agreement, user manual, and order page
Note that: There is no time limitation on this free trial version of Java Barcode Generator. But a "KA Barcode" watermark will appear on the generated barcodes randomly. How to Generate QR Code in Java Class
How to Install KA.Barcode for Java
- Download KA.Barcode for Java package and unzip it.
- Copy "com.keepautomation.barcode.jar" file to your Java project library folder.
- Add "com.keepautomation.barcode.jar" to your project reference.
- Now the installation is finished successfully.
How to Generate QR Code in Java Class with Demo Code
Here is the detailed sample code to create QR Code in Java class. All the QR Code barcode parameters can be adjusted easily. You can copy these sample codes to your projects now to view the generated barcodes! Sample code
public static void main(String[] args) {
BarCode barcode = new BarCode();
barcode.setCodeToEncode("123456789"); barcode.setSymbology(IBarCode.QRCODE); barcode.setQrCodeDataMode(IBarCode.QR_MODE_AUTO); barcode.setQrCodeEcl(IBarCode.QR_ECL_L); barcode.setQrCodeVersion(1);
try { barcode.draw("c://qrcode.gif");
} catch (Exception e) { e.printStackTrace(); } } Generate QR Code in iReport Through JARenderable Implementation
With KA.Barcode generator for Java, developers can create high quality QR Code barcodes in Java iReport through JRRenderable implementation. For more details, please download KA.Barcode for mit Java free trial and view the user manual. Generate QR Code in iReport Through Servlet Web Application
KeepAutomation barcode generator for Java also supports QR Code generation in iReport through servlet web application in Java language. To view detailed information about how to create QR Code barcodes in iReport through Servlet Web Application, please download KA.Barcode for Java free trial package and read the user manual to customize QR Code error correction level. |