The Java app is to make it easier for someone who has an account on to scan a photo and upload it to the FamilySearch system. There might well be a good reason, but scanners generally work pretty automatically, so why not just use Java to process the resulting file?
This one, which is quite a bit newer, suggests that JTwain or Morena might do what you want, but my thought is: why do you need to do this in Java?
Well, from what I understand, TWAIN is a Windows standard, and this article suggests that there are ways of doing it but it is nearly 10 years old. Montana Burr wrote:I want to build a Java app that can use any document scanner, whether it is connected to the same network as the computer or to the computer itself.