• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Veer-273°
博客园    首页    新随笔    联系   管理    订阅  订阅

android工程下不能运行java main程序的解决办法

我在 android环境下写了一个测试Java类,带有main方法,可是无法运行,如下提示:

Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:136), pid=88924, tid=89728
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (7.0_72-b14) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.72-b04 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:
# D:\Android\AndroidAdt\workspace\Test01\hs_err_pid88924.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp

 


解决方法:run as --->  Run Configurations  -->  classPath remove掉Bootstrap Entries下的android.jar 

              然后 Add Library -->JRE System Libray  完成后  在运行就OK了!

 

posted @ 2016-03-01 11:10  Veer-273°  阅读(352)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3