I used this Java library, I think you can try it https://www.nayuki.io/page/qr-code-generator-library#java