整理一下,网上提供两种方法:
1、eclipse.ini添加内存
具体方法:修改eclipse.ini最后两行-Xms40m、-Xmx256m,改为-Xms128m、-Xmx512m,具体数值根据机器内存自己 写,原则如下:JVM初始分配的内存由-Xms指定,默认是物理内存的1/64;JVM最大分配的内存由-Xmx指定,默认是物理内存的1/4。
2、 导入工程的jar通过add User Library方式导入
右键工程->build path->add Library->user Library->user Libraries->new->随便取个名字->add JARs->ok
添加过程中记得将user systemLibrary选中
3、我按照以上方法修改后,问题仍然没有解决,把java版本指定为1.5后,没有再出现此问题!
看了一下eclipse.ini倒数第三行-Dosgi.requiredJavaVersion=1.5,可能跟这个有关,我猜随后的Xms Xmx可能是跟指定的java版本有关,于是测试了下把-Dosgi.requiredJavaVersion改为1.6,eclipse工程指定 java版本也改为1.6,其余没做改动,运行,成功!
分享到:
相关推荐
android引入外部jar包弹出以下错误[2020-04-23 13:08:25 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/loopj/android/http/AsyncHttpClient$1; [2020-04-23 13:08:25 - Halloworld1] ...
用于分包,解决 android 打包时报Unable to execute dex: method ID not in [0, 0xffff]: 65536
failed to execute script 解决方案+命令行执行传参exe
从commons-beanutils-1.8.3.jar中删除了org/apache/commons/collections目录及其下的类,避免了与commons-collections-3.2.jar一起在android中使用时报Andorid Unable to execute dex: Multiple dex files define错...
从commons-beanutils-1.8.3.jar中删除了org/apache/commons/collections目录及其下的类,避免了与commons-collections-3.2.jar一起在android中使用时报Andorid Unable to execute dex: Multiple dex files define错...
nested exception is java.lang.OutOfMemoryError: Java heap space org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap...
64k的各种异常 ...Unable to execute dex: method ID not in [0, 0xffff]: 65536 或者 UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536 at com.
ubuntu 下vim配置,包括语法高亮,backspace。
如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar】
如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar
init:rcS post-stop process(1160) init:rcS post-stop process(923)
ExecuteSQL.java
qt-sql-odbc-prog-example ==================== 作者:William.L 电子邮件: SlideShare: ://www.slideshare.net/wiliwe/ 目的 示例代码:###### Linux上Qt ODBC数据库访问的使用说明######
Python 使用pyinstaller打包成exe文件后运行出现Failed to execute script ***的解决方案
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
主要介绍了详解docker中使用systemctl启动服务报错的解决办法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Python 3.85 使用pyinstaller在win10 x64下打包的应用程序,在win10 x64下运行完全正常,但是在win7 x64下则报错。failed to execute script pyi_rth_ pyi_rth_xxx 解决方法
react-naitve 错误之Failed to execute aapt , react-native错误解决方案,
Review of General Memory Concepts: Java Heap, Native Memory, and Memory Leaks Investigating Java Heap Out of Memory Errors Review Garbage Collection and Object References Symptoms, Causes, and ...
spring-petclinic-master运行mvn install报错:Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.19:validate (default) on project spring-petclinic: Formatting violations ...