Originally posted by Ulf Dittmer:
You don't need to use JAI in order to save images. Have a look at the javax.imageio.ImageIO class, which has various methods that greatly simplify reading and writing images.
Well, you do need JAI if you want to save in formats not supported by J2SE but JPEG is supported so that's somewhat irrelevent. If you need to save in something not supported by J2SE then
you should look at
https://jai-imageio.dev.java.net/ for help on using JAI-ImageIO, otherwise just stick with what Ulf suggested in the standard libraries.