直接运行会报这个错误
#AfatalerrorhasbeendetectedbytheJavaRuntimeEnvironment:
#
#InternalError(classFileParser.cpp:3161),pid=4884,tid=1732
#Error:ShouldNotReachHere()
#
#JREversion:6.0_22-b04
#JavaVM:JavaHotSpot(TM)ClientVM(17.1-b03mixedmodewindows-x86)
解决办法如下:
右击有main方法的类
===>Runas
===>RunConfigurations
===>双击javaapplication
===>单击有main方法的类
===>选中classpath选项卡
===>remove掉BootstrapEntries下的android.jar
===>然后点击advanced
===>AddLibrary
===>JRESystemLibrary
===>next
===>最后finish
===>Run
原百度空间文章迁移:http://hi.baidu.com/luckystreet/item/b3a46c6050e8de2568105b37