java 如何使用java生成条形码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4703318/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to generate barcodes using java
提问by mani
Is it possible to generate barcodes using java? If so how can i do that? Appreciate any information.
是否可以使用java生成条形码?如果是这样,我该怎么做?欣赏任何信息。
回答by Brian Clapper
There are some existing components out there that'll help. For instance:
有一些现有的组件会有所帮助。例如:
回答by Sean Owen
回答by gonella
Take a look in this how to, using ZXing. http://www.vineetmanohar.com/2010/09/java-barcode-api/
看看这个如何,使用 ZXing。http://www.vineetmanohar.com/2010/09/java-barcode-api/
Maven dependency:
Maven 依赖:
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.2.0</version>
</dependency>