---
title: "“程序包com.sun.image.codec.jpeg不存在”问题解决"
author: "samwalt"
date: "2015-08-07T10:12:29Z"
tags: []
categories: ["编程语言"]
slug: "com-sun-image-codec-jpeg"
draft: false
lastmod: "2015-08-07T10:13:51Z"
id: 2233497
url: "https://samwalt.iteye.com/blog/2233497"
---

编译出错：程序包com.sun.image.codec.jpeg不存在

jdk中是有该程序包源码的，编译出错是因为没引用到jre中有该类的jar包

在intellij idea的maven->runner中选择jre，而不要选择jdk

http://blog.csdn.net/wgw335363240/article/details/7289651