如何修改android 不能运行 java Application

在安卓工程中运行Java ,会报以下错误:

Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:136), pid=11252, tid=10964
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (7.0_51-b13) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# E:\git\PhoneApp\hs_err_pid11252.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

参考:

http://chenhao518g.blog.163.com/blog/static/34069748201241123345252/

右击有main方法的类 ===> Run as ===> Run Configurations  ===>双击java application ===> 单击有main方法的类 ===>

选中classpath选项卡 ===> remove掉Bootstrap Entries下的android.jar ===> 然后点击advanced===> Add Library==>JRE System Library ===>next==>最后finish==>Run 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值