BufferedImage image = ImageIO.read(file);中 ImageIO一直报错,因为缺少类库,但是不知道怎么添加,求教如何解决
import java.awt.image.BufferedImage;
import java.io.File;
import com.google.zxing.BinaryBitmap;
import com.google.zxing.MultiFormatReader;
import com.google.zxing.Result;
import com.google.zxing.client.j2se.BufferedImageLuminanceSource;
import com.google.zxing.common.HybridBinarizer;
import javax.imageio.ImageIO;
导入上面这个就好了,不用导入jar,它是jdk自带的