Generate QR Code via Java
Barcode generation API for Java developers to create all 1D & 2D barcodes including QR Code, GS1 QR Code in image formats.
How to Generate QR Barcode Using Java
In order to create QR Code, GS1 QR Code barcode , we’ll use
API which is a feature-rich, powerful and easy to use barcode API for Java platform. You can download its latest version directly from
and install it within your Maven-based project by adding the following configurations to the pom.xml.
<repository> <id>AsposeJavaAPI</id> <name>Aspose Java API</name> <url>https://repository.aspose.com/repo/</url> </repository>
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-barcode</artifactId> <version>version of aspose-barcode API</version> <classifier>jdk17</classifier> </dependency>
Steps to Generate QR Code via Java
- Create a new instance of BarCodeGenerator class
- Use relevant EncodeTypes as parameter
- Set barcode text using setCodeText method
- Use the BarCodeGenerator.save method to get the barcode image
Aspose.BarCode for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.
- Microsoft Windows or a compatible OS with Java Runtime Environment for JSP/JSF Application and Desktop Applications.
- Get latest version of Aspose.BarCode for Java directly from Maven.
Create QR Barcodes - Java
BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR); generator.setCodeText("123ABC"); generator.save("output.png"); // Use the relevant EncodeTypes QR, GS1 QR
QR Barcode Generation Live Demos
Create QR Barocdes right now by visiting our Live Demos website.The live demo has the following benefits
About Aspose.BarCode for Java APIAspose.BarCode is a barcode reader and generation API. It can easily decode and generate 1D, 2D and postal barcodes of multiple symbologies. Developers can easily integrate it in any barcode generation and scanning application. Moreover, Generated barcodes can easily be exported to different high-quality image formats. Its a standalone library and does not require any additional software installation.
Other Supported Barcode Generation Symbologies
Using Java, One can also create barcode of different symbologies including.