I wrote a Test Java class in the Android environment, with the main method, but could not run, the following prompt:
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 is not enabled by default on client versions of Windows
#
# A error report file with more information is saved as:
# D:\Android\AndroidAdt\workspace\Test01\hs_err_pid88924.log
#
# If you would as to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
Workaround:Run as---> Run configurations-classPath remove bootstrap entries under Android.jar
Then Add Library-->jre System Libray is finished and it's OK on the run!
Solutions for Java main programs that cannot be run under Android engineering