android工程下不能运行java main程序的解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android工程下不能运行java main程序的解决办法相关的知识,希望对你有一定的参考价值。
我在 android环境下写了一个测试Java类,带有main方法,可是无法运行,如下提示:
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=88924, tid=89728
# fatal error: Invalid layout of preloaded class
#
# JRE version: (7.0_72-b14) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.72-b04 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:
# D:\Android\AndroidAdt\workspace\Test01\hs_err_pid88924.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
解决方法:run as ---> Run Configurations --> classPath remove掉Bootstrap Entries下的android.jar
然后 Add Library -->JRE System Libray 完成后 在运行就OK了!
以上是关于android工程下不能运行java main程序的解决办法的主要内容,如果未能解决你的问题,请参考以下文章