Fatal error: invalid java.lang.String layout by value

In Eclipse (in the console), I got an extremely nullifying error:

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 

Download the magazine

I can’t understand this, because even Eclipse doesn’t display any errors (in the code editor) ... This is a real performance killer because it blocks all successes. If anyone has ideas on how to solve this problem, answer this question.

Thank you very much in advance,

Before

+50
java android string eclipse fatal-error
Oct 23
source share
7 answers

I had the same problem then (as Jeff Schulz said here ). I tried:

Launch As β†’ Android Application

and the problem is resolved. But I do not know the reason that causes this problem. I hope this helps you!

+65
Nov 30 '12 at 15:50
source share

In the case of an Android project, you need to remove the Android Lib from the launch configuration for this particular class. Use the walkthrough below as a guide.

  • Project β†’ Properties β†’ Run / Debug Settings ;
  • Select your class and click " Edit ";
  • Open the " Classpath " tab and remove the Android Lib from the "Bootstrap Records";
  • Apply everything and Run the class again.
+117
Nov 03 '12 at 14:30
source share

This happened to me after:

  • Insert a class into an Android application project, where I forgot to remove the function public static void main(String args[]) . (Previously performed a quick class check).
  • I tried to run the application while I opened and focused the above class in the Eclipse editor.

The funny thing is that after an Eclipse error, no matter what class I switched focus to when I tried to start the application again, I was stuck with the same error.

Inspired by Odyr Sohn , I managed to solve the problem (from Project-> Properties-> Run / Debug Settings , deleting the erroneous startup configuration), but as soon as I tried to start the application from this class, it repeated again. When I removed the function public static void main(String args[]) from the class, the problem was resolved forever.

+4
Jul 03 '13 at 16:50
source share

You must create a launch configuration for the Android application. If you do this for "Java Application" in error, this error will show.

+1
Jul 07
source share

The same thing happened to me. I created TestActivity, and I assume that it had a function public static void main (String args []). I went into properties and then Run / Debug and removed TestActivity and it worked fine.

0
Dec 22 '13 at 0:05
source share

I had a similar problem on fatal error: Invalid layout of preloaded class with Kepler Service Release 1 using Windows 7.

 Project -> Properties -> Java Build Path -> Order and Export --> check mark any unchecked library or Android version and then hit OK. Then run as Android application. 
0
Dec 26 '13 at 1:05
source share

I had the same problem, it was solved:

Run-> Run Configurations;

Click "Left" on the "Android application" β†’ The button on the top is "Create";

then enter the name and "Browse" of the project -> it works!

0
May 21 '14 at 3:26
source share



All Articles