Access restriction: The type 'JPEGImageEncoder' is not API 解决方法: 在你的项目上右击选择"BuildPath" => "libraries" 先remove掉JRE System Library,然后再Add Library重新加入。