Eclipse "Invalid layout of java.lang.String at value"无法运行程序

来源:互联网 发布:医疗器械商城源码 编辑:程序博客网 时间:2024/05/18 02:08

今天用Eclipse突然在控制台出现如下错误,没有办法运行程序:

Invalid layout of java.lang.String at valueA fatal error has been detected by the Java Runtime Environment:Internal Error (javaClasses.cpp:129), pid=15238, tid=140306591237888fatal error: Invalid layout of preloaded class JRE version: 7.0_07-b10 Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode linux-amd64 compressed ops) Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited" before starting Java again An error report file with more information is saved as: /home/till/workspace/Encrypt/hs_err_pid15238.log If you would like to submit a bug report, please visit:   http://bugreport.sun.com/bugreport/crash.jsp


在网上搜索,解决办法是:

右键工程——>Run As——>Android Application问题解决,但是不明缘由。


注:感谢DT太子提供另外的方案:

  • Project->Properties->Run/Debug Settings;
  • 选择类,然后选择"Edit";
  • 打开 "Classpath" ,删除 Android Lib from "Bootstrap Entries";
  • 应用重新运行。