Java Barcode Generator for Java 17+
Linear and 2D barcode packages with a JavaBean, servlet, class library and encoder in a single JAR.
One JAR per symbology
Each symbology package contains a servlet, JavaBean, class library and encoder, with source code for the graphic encoders and servlets.
- Code 39, Extended Code 39, Code 128, Interleaved 2 of 5, Codabar, UPC-A, UPC-E, EAN-8, EAN-13, MSI, Code 11, Code 93, Industrial 2 of 5, USPS IMb, Postnet and Planet
- Aztec, Data Matrix ECC200, PDF417, MaxiCode, QR Code, Micro QR, GS1 QR and GS1 DotCode
- GS1 DataBar family including Expanded, Stacked, Composite and Limited
- JavaBean with drag-and-drop support in IDEs
A QR Code in Java
The manual’s QR Code example creates a QRCode object, sets the data and X dimension, and encodes it to GIF. Linear packages use the same pattern with a BarCode object. Complete examples are in each download.
QRCode qr = new QRCode();
qr.setDataToEncode("https://www.javabarcoding.com");
qr.setXDimensionCM(0.05);
// pass the object to barCodeEncoder with "GIF" and a file name to save itBarcode options
Orientation
0, 90, 180 or 270 degrees.
Sizing
Adjustable X dimension, wide-to-narrow ratio, height, margins and spacing.
Human-readable text
On or off, with font and color settings.
Check digits
Enabled or disabled for many linear types, with bearer bars, character grouping and add-ons.
Runs wherever Java runs
Barcode classes can be placed in Java containers, drawn into a BufferedImage, or streamed from a servlet.
- Windows, Linux, Mac OS and Unix with Java 17 or later
- Headless Java, a remote X server or a virtual frame buffer when no GUI is available
- Spring Framework support and Oracle Reports and Forms integration
- A hosted Dynamic Barcode Generation Service as an alternative to the servlet
Frequently asked questions
Which Java versions are supported?
The latest JARs are compiled for Java 17 and later. The packages run on any platform with a JVM, including headless Java.
What is in each package?
Each symbology package ships as a single JAR containing a servlet, JavaBean, class library and encoder. Source code is included for the graphic encoders and servlets.
Which output types are available?
PNG, GIF, JPEG, SVG and EPS, saved to a file or streamed through the servlet. The class library also produces Java AWT images, and the barcode classes extend java.awt.Canvas.
Do I get the barcode generation source code?
Source for the core barcode generation classes is available only with an Unlimited Developer License and a signed Source Code License Agreement.
Is it royalty-free?
Royalty-free use requires a Developer License. The license is perpetual and includes full source code as described on the license summary. Organizations under a revenue threshold may qualify for the Small Company Agreement.
What support is included?
Automatic registration with lifetime Level 1 support, one Level 2 incident for 30 days, instant download and a 30-day unconditional money-back guarantee.
Download the Java barcode demo
Free demos are fully functional.