Barcode Reader API for Java

Last Updated on

Dynamsoft’s Barcode Reader SDK is a cross-platform bar code detection and decoding library, available for Windows, Mac, Linux, Android, and iOS. With the barcode scanning SDK, developers could easily build Java barcode applications on desktop platforms.

Java Barcode Reader SDK

To add a dependency using Maven:

<project xmlns="" 
  xmlns:xsi="" xsi:schemaLocation="">

Example code:

import com.dynamsoft.barcode.jni.BarcodeReader;
import com.dynamsoft.barcode.jni.TextResult;
import java.nio.file.Path;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        String path = System.getProperty("user.dir");
        Path p = Paths.get(path, "images", "test.jpg");
        try {
            BarcodeReader reader = new BarcodeReader(
                    "<Your trial license>");
            TextResult[] results = reader.decodeFile(p.toString(), "");
            for (TextResult result : results) {
        } catch (Exception e) {
            // TODO: handle exception



Apply for a trial license.

Try for Free

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.