运行build.xml ,出现 Error starting Sun's native2ascii
在一个web项目中,运行build.xml文件是出现Error starting Sun's native2ascii
问题,我找了各种可能的情况,其他同事都没有这个问题,很是郁闷,也是在网上
发现了这个解决方法:
复制JDK目录下的lib文件夹的tools.jar到JRE目录下的lib文件夹下的ext文件夹
(另外一个更好的办法就是把JRE的路径设置到JDK的目录下)
Copying %Java_Home%/lib/tools.jar to %Java_Home%/jre/lib/ext/tools.jar fixed this problem.
(a better approach is to set up JRE path to the directory JDK)
经过分析:
今天使用Maven创建Appfuse的时候,发现出现Error starting Sun's native2ascii
Maven指向的是JRE的目录,JRE目录下没有tools.jar,故找不到native2ascii
研究后发现Maven指定的是../相对路径按道理能通过找寻上一级文件夹从而找到jdk目录继而找到tools.jar包
因此一般情况下是用JDK里面的JRE不会出现这个问题.
通过上面分析判断项目配置的JRE不在JDK的目录,把tools.jar文件放到JRE目录lib文件夹的ext文件夹下
问题解决.
运行build.xml ,出现 Error starting Sun's native2ascii相关推荐
- SpringBoot运行时提示:Error starting ApplicationContexxt,To display the uto-configration report re-run you
场景 在搭建SpringBoot项目启动后提示: Error starting ApplicationContexxt,To display the uto-configration report r ...
- 通过ANT实现jmeter批量执行脚本、生成报告、发送邮件全套build.xml文件
在开始通过ANT运行build.xml之前,有一步必须要做,那就是将JMeter所在目录下extras子目录里的ant-JMeter-1.1.1.jar复制到Ant所在目录lib子目录之下,这样Ant ...
- 运行报错Error starting ApplicationContext
1.问题: Error starting ApplicationContext. To display the conditions report re-run your application wi ...
- myeclipse ant 编译java_Java MyEclipse下Ant build.xml简单实例详解
一.下载配置ant 1.首先下载ant: http://www.apache.org/ 下载最新的版本 2.解压ant 后设置ANT_HOME, PATH中添加ANT_HOME目录下的bin目录(如: ...
- Ant之build.xml详解
Ant的概念 可能有些读者并不连接什么是Ant以及入可使用它,但只要使用通过Linux系统得读者,应该知道 make这个命令.当编译Linux内核及一些软件的源程序时,经常要用这个命令.Make命令 ...
- SpringBoot项目报错解决:“Error starting ApplicationContext. To display the conditions report re-run ...”
SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...
- Error starting ApplicationContext. To display the conditions report re-run your application 排查
jar包启动项目失败,并报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...
- 解决Error starting ApplicationContext.To display the conditions report re-run your application xxx的问题
目录 1. 配置文件的错误 2. 编译的错误 3. 定义请求接口重复的错误 4. 没加@Mapper注解的错误 5. 端口重复错误 6. 包冲突的错误 7. 总结 8. 参看文档 解决Error st ...
- 一个build.xml实例
<?xml version="1.0"?> <project name="ssh" basedir="." default ...
最新文章
- 云计算服务需求促进边缘计算的应用与发展
- shell脚本实现动态时钟
- bean交个spring和new比较区别
- rfcv函数实现_JAVA_用_JCO连接_SAP,实现调用SAP_的_RFC_函数(整理)(附一篇看起来比较全面的说明)(JCO报错信息)...
- python虚拟环境和pyenv_Python多版本管理器pyenv和虚拟环境pyenv-virtualenv的安装设置...
- python123下载失败_安装python3.5时出现严重错误无法完成安装,请问这个是什么情况?怎么解决??...
- 编译Android源码:Exception in thread main java.lang.UnsupportedClassVersionError:报错解决
- ASP.NET - 一般处理程序获取session值
- SQL 2008升级SQL 2008 R2完全教程或者10 00 1600升级10 50 1600
- python3修改pip执行环境和安装软件源
- 为何说 a16z 是一家通过 VC 获利的媒体公司?
- linux执行 ifconfig 命令 eth0没有IP地址(intet addr、Bcast、Mask)
- UDS协议一致性测试之Service 27环境NRC 13、NRC 24优先级判断
- 基于重构误差的同构图分类模型
- 从零起步认识XAML
- 基于PHP的旅游管理系统
- 500是什么php,HTTP 500,该怎么解决
- [转] 找到一个与VR相关的博客
- 项目测试分析报告 模板
- Arithmetic overflow error converting numeric to data type numeric错误解决