1

When I build my project, there is no error, but when I run the project,there is a error come out as follows:

Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:127), pid=8228, tid=6992
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (8.0_45-b15) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
# 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\User\Desktop\Eclipse_Projects\LookAtMe2_source\Test.LookAtMe.Data\hs_err_pid8228.log

In the hs_err_pid8228.log file:

A fatal error has been detected by the Java Runtime Environment:
Internal Error (javaClasses.cpp:127), pid=8228, tid=6992
 fatal error: Invalid layout of preloaded class
JRE version:  (8.0_45-b15) (build )
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
Failed to write core dump. Minidumps are not enabled by default on client versions of Window
Pang
  • 9,564
  • 146
  • 81
  • 122
df4gg55
  • 11
  • 2

1 Answers1

0

Try this:

Run As -> Android Application

From here.

Community
  • 1
  • 1
Jase Pellerin
  • 397
  • 1
  • 2
  • 13
  • After I rebuild the project and Run as Android ,there is a error that: Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/opencv/R$attr; LookAtMe Unknown Android Packaging Problem – df4gg55 Jul 24 '15 at 06:14
  • Go to Project/properties and Java Build Path and unchecked the Android Private Libraries From http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray – Jase Pellerin Jul 24 '15 at 07:36