Home / Java Patterns and Pitfalls     frequal.com

How to Generate a QR Code for a URL

First, download the ZXing library. Then run this command:
java -cp javase/javase.jar:core/core.jar com.google.zxing.client.j2se.CommandLineEncoder http://frequal.com/index.html
The resulting out.png file contains the QR code for the URL you provided on the command line.
Last modified on 13 Apr 2012 by AO

Copyright © 2024 Andrew Oliver