java.util.
NoSuchElementException: No mapping for class sun.awt.AppContext
at
com.mercury.bcel.TransformerXmlFile$MappingLocator.setMapping(TransformerXmlFile.java:96)
at
com.mercury.bcel.TransformerFactory.createTransformer(TransformerFactory.java:56)
at
com.mercury.bcel.TransformerMainImpl.transform(TransformerMainImpl.java:33)
at
com.mercury.bcel.TransformerMain.transform(TransformerMain.java:35)
at com.mercury.javashared.transform.TransformersChain.transform(TransformersChain.java:35)
at com.mercury.javashared.transform.CommunicationThread.processTransformRequest(CommunicationThread.java:76)
at com.mercury.javashared.transform.CommunicationThread.run(CommunicationThread.java:42)
通过这个com.mercury 可知这是安装了QTP的原因,会添加很多环境变量
解决办法, 修改注册表:HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/JavaAgent 项:SupportEnabled修改原值1为 0。