问题描述
异常是这样的,请看图:Aconfigurationerroroccurredduringstartup.Pleaseverifythepreferencefieldwiththeprompt:ERROR:transporterror202:gethostbyname:unknownhostERROR:JDWPTransportdt_socketfailedtoinitialize,TRANSPORT_INIT(510)JDWPexiterrorAGENT_ERROR_TRANSPORT_INIT(197):Notransportsinitialized[../../../src/share/back/debugInit.c:690]请高手解答,小弟感激不尽。
解决方案
解决方案二:
检查一下系统hosts文件是否正常,有没有包含本机的记录?
解决方案三:
hosts文件的信息:#Copyright(c)1993-2009MicrosoftCorp.##ThisisasampleHOSTSfileusedbyMicrosoftTCP/IPforWindows.##ThisfilecontainsthemappingsofIPaddressestohostnames.Each#entryshouldbekeptonanindividualline.TheIPaddressshould#beplacedinthefirstcolumnfollowedbythecorrespondinghostname.#TheIPaddressandthehostnameshouldbeseparatedbyatleastone#space.##Additionally,comments(suchasthese)maybeinsertedonindividual#linesorfollowingthemachinenamedenotedbya'#'symbol.##Forexample:##102.54.94.97rhino.acme.com#sourceserver#38.25.63.10x.acme.com#xclienthost#localhostnameresolutionishandledwithinDNSitself.#127.0.0.1localhost#::1localhost