当前位置: 技术问答>java相关
我下载ant,设置好了PATH,ANT_HOME,但一运行就报错Provider org.apache.crimson.jaxp.SAXParserFactoryImpl could not be instantiated
来源: 互联网 发布时间:2015-05-05
本文导语: C:Project>ant Buildfile: build.xml BUILD FAILED javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.SA XParserFactoryImpl could not be instantiated: java.lang.SecurityException: seali ng violation at javax.xml.parsers.SAXParserFa...
C:Project>ant
Buildfile: build.xml
BUILD FAILED
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.SA
XParserFactoryImpl could not be instantiated: java.lang.SecurityException: seali
ng violation
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
105)
at org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.jav
a:776)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
at org.apache.tools.ant.Main.runBuild(Main.java:439)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
Total time: 0 seconds
Provider org.apache.crimson.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.SecurityException: sealing violation
Buildfile: build.xml
BUILD FAILED
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.SA
XParserFactoryImpl could not be instantiated: java.lang.SecurityException: seali
ng violation
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
105)
at org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.jav
a:776)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
at org.apache.tools.ant.Main.runBuild(Main.java:439)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
Total time: 0 seconds
Provider org.apache.crimson.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.SecurityException: sealing violation
|
你的CLASSPATH中有和他冲突的东西
检查CLASSPATH 以及JAVA_HOME/jre/lib/ext中的包
检查CLASSPATH 以及JAVA_HOME/jre/lib/ext中的包
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。