繁体   English   中英

从Eclipse中的Android项目运行Java应用程序

[英]Running java application from android project in eclipse

是否有可能运行Java porgram,它执行一些简单的操作,例如仅从Eclipse中的android项目执行加,减等操作? 这样做时,出现以下错误。 值的java.lang.String布局无效

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:136), pid=15848, tid=47842905868608
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (7.0_45-b18) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# 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:
# /rhel5pdi/workplace/golchham/android-amazon/src/MAAAndroidSampleAPK/hs_err_pid15848.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

我对此有任何帮助吗?我发现了类似的错误,但都与内存相关或库问题有关。 我在这里找不到任何东西。

提前致谢。

将std JRE添加到“属性/ java构建路径/库”

在“ runco​​nfiguration / classpath”中删除Android(仅保留std JRE)

类文件错误

内部错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM