在Eclipse下使用Ant,build项目时,报package com.sun.image.codec.jpeg does not exist 错误。导致编译通不过。
环境:Eclipse Kepler 、Ant 1.6、JDK1.7.0
原因:在JDK1.7+时,Oracle不允许使用sun.*的jar。具体参见http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html 。
为了防止被墙,加上图片
因为不能修改项目的原有代码,不能更换JDK版本,所以我使用的解决方案为:
在ANT中明确指定使用这个rt.jar。
另外还有一种,把rt.jar丢到工程的lib下,但我没成功。
相关推荐
解决/root/.Xauthority does not exist
“Controller does not exist.”登陆后台突然是这个提示登陆不上后台了。 入口为:index.php?m=admin 这是控制器不存在错误 应该是改过了系统文件,或者是上传文件缺失。 可以这样做,把phpcms/ 目录下的所有文件和...
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
安装sap gui 750后,打开smartforms或scriptforms提示:CSapEditorCtrl::GetObject: Object 13 does not exist的解决方法:安装此安装包后即可解决问题
解决SAPGUI800使用SMARTFORMS创建/编辑文本时报错CSapEditorCtrl::GetObject: Object 15 does not exist的对应版本SAPscript Legacy Text Editor patch安装包
FILE_DOES_NOT_EXIST HOOK zwCreateFile
NULL 博文链接:https://banner.iteye.com/blog/613081
Code::Blocks – The file does not exist. 1. Code::Blocks Could not open the file '/home/strong/codeblocks_work/Fire-master/src/bubble/config.cpp'. The file does not exist. 2. Build log ...... g++: ...
一般情况都是因为文件的上级目录不存在浏览权限。...详细说明:Serv_U安装设置以及530 Not logged in, home directory does not exist解决方法安装程序尽量采用最新版本,避免采用默认安装目录,设置好serv-u
主要介绍了vscode中的vue项目报错Property ‘xxx‘ does not exist on type ‘CombinedVueInstance(2339),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小...
from django.core.exceptions import ObjectDoesNotExist try: pe = Plant.objects.get(id=12873) except ObjectDoesNotExist: print "uuuu" uuuu # 我随意找了一个id=12873的对象来查询,当然,数据库里没有这个...
今天项目优化过程中,mysql有个问题The user specified as a definer (‘wx_root’@’%’) does not exist 查了一下,意思是执行sql无权限。 看了下数据库用户是quoters 而sql没有所属权。那就找原因了。发现sql执行...
打开网站提示 Action does not exist. 是程序无法读取index.html的原因,但后来修改伪静态规则后,还是不行-,-现在就补充一下如何解决这个问题
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要...
在有eclipse集成环境下ant其实不是很重要,但有些项目需要用到,另外通过eclipse来学习和理解ant是个很好的途径,所以写他demo总结下要点,希望能够帮到大家。 一、本人测试环境eclipse3.6已自动集成了ant环境, ...
smartforms 文本提示:CSapEditorCtrl::GetObject: Object 13 does not exist-附件资源
do_not_exist
今天小编就为大家分享一篇关于Mysql:The user specified as a definer ('xxx@'%') does not exist的解决方案,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
models.py — 定义数据表 from django.db import models # Create your models here. class User(models.Model)... # 修改在 admin 管理工具中的默认名,返回文章标题 def __str__(self): return self.username 以上