Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal Error: Invalid Layout of java.lang.String at value

I got an extremely annyoing error in Eclipse (in the console):

Invalid layout of java.lang.String at value  A fatal error has been detected by the Java Runtime Environment:  Internal Error (javaClasses.cpp:129), pid=15238, tid=140306591237888 fatal 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 

Log Download

I cant't make any sense of this, because even Eclipse doesn't display any errors (in the code editor)... This is a real productivity-killer, because it blocks all progress. If anyone has any ideas on how to solve this, please answer this question.

Thank you really much in advance,

Till

like image 751
tilpner Avatar asked Oct 23 '12 12:10

tilpner


2 Answers

In case of an Android project, you have to remove Android Lib from the launch configuration for that specific class. Use the "walkthrough" below as a guide.

  • Project->Properties->Run/Debug Settings;
  • Select your Class and click "Edit";
  • Open the tab "Classpath" and remove Android Lib from "Bootstrap Entries";
  • Apply everything and Run the class again.
like image 135
Odyr Sohn Avatar answered Oct 01 '22 04:10

Odyr Sohn


I had same problem,then(as Jeff Schultz said here) I tried:

Run As -> Android Application

and problem solved.But I don't know the reason that causes this problem.I hope this help you!

like image 35
hasanghaforian Avatar answered Oct 01 '22 02:10

hasanghaforian