0

I am creating an Android mobile app in Eclipse Luna and everything was working fine. Then I received the following error. I have tried running my project as an Android Application, editing the debug settings, and removing Android Lib from the Bootstrap Entries, but nothing has worked. Does anyone have anything else that I can try?

I only receive the error message when I run my program as there are no errors throughout the program until runtime. The program also runs as a Java application but won't work on an android application. When I installed the android SDK plugin that's when the error occurred but until the plugin was installed the program ran. My error message in full is:

Invalid layout of java.lang.String at value
#
#    A fatal error has been detected by the Java Runtime Environment:
#
#    Internal Error (javaClasses.cpp:126), pid=4632, tid=4988
#    fatal error: Invalid layout of preloaded class
#
#    JRE version:  (8.0_25-b18) (build )
#    Java VM: Java HotSpot(TM) Client VM (25.25-b02 mixed mode windows-x86 )
#    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:
#    C:\Users\Kevin\Desktop\Final Year      Project\IndependentRetailers\hs_err_pid4632.log
#
#    If you would like to submit a bug report, please visit:
#    http://bugreport.sun.com/bugreport/crash.jsp
#
2
  • 1
    Possible duplicate of stackoverflow.com/q/13030111/2670892 Commented Mar 24, 2015 at 7:49
  • Sadly I tried these solutions and nothing worked. Not sure if this has caused the issue but the problem occurred after I installed sdk manager tools for Eclipse. Would that have had any affect on it? Commented Mar 24, 2015 at 10:08

1 Answer 1

2

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.

OR

You can get past this by using the Run As -> Android Application. Possibly check the Run configuration for other issues.

Hope this helps

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.