[英]Running java application from android project in eclipse
Is it possible to run a java porgram which does some simple operations like may be just perform addition,subtraction,etc from a android project in eclipse? 是否有可能运行Java porgram,它执行一些简单的操作,例如仅从Eclipse中的android项目执行加,减等操作? When I do so, I get the following error. 这样做时,出现以下错误。 Invalid layout of java.lang.String at value 值的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
#
Any help on this ?I found similar errors but all were with some memory related or library issues. 我对此有任何帮助吗?我发现了类似的错误,但都与内存相关或库问题有关。 I don't find any here. 我在这里找不到任何东西。
Thanks in advance. 提前致谢。
Add the std JRE to "properties / java build path / libraries" 将std JRE添加到“属性/ java构建路径/库”
In the "runconfiguration / classpath" remove Android (leaving only std JRE) 在“ runconfiguration / classpath”中删除Android(仅保留std JRE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.