java扩展 was started bu...

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
阅读(3216)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_083065',
blogTitle:'eclipse错误java was started but returned exit code =-',
blogAbstract:'java was started but returned exit code =-
这个错误原因可能有很多,我这只是一只可能的解决方法,如下:
主要原因是eclipse.ini配置文件错误了,配置文件中-vm参数设置错误,在windows7系统下需要使用 \" / \" 而不是 \" \\ \"
原配置文件:
-startupplugins/org.eclipse.equinox.launcher_1.1.1.R36x_v0.jar--launcher.library',
blogTag:'eclipse关闭报错',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:8,
publishTime:5,
permalink:'blog/static/',
commentCount:1,
mainCommentCount:1,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}eclipse运行时弹出提示java was started but returned exit code=13_百度知道
提问者采纳
32位只能装32位,你的操作系统是多少位的eclipse版本和jdk版本不匹配,64位就要装64的
提问者评价
谢谢,已经解决了,是版本不同的问题
其他类似问题
eclipse的相关知识
按默认排序
其他2条回答
建议把工程关闭,然后重启就可以
你的jdk是1.6的吗
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Eclipse出现java&was&started&but&returned&exit&code&1报错并退
Got from /archives/57.htm
最近在使用Eclipse时发现无法启动,或者启动后经常出现崩溃退出的情况,提示的错误信息都是“java was started but
returned exit code
1”,下载安装了最新版的Eclipse后还是没有解决问题。无奈之下只好百度之,翻了好几页都没有发现有用的信息,直接换到,终于
在Eclipse Forum找到了一个靠谱的答案(网址是
Eclipse is using the system default JRE
that it finds in the windows
system folders. You should point it to a JDK installation
eclipse.ini (as described here:
Note: if you recently downloaded or updated JDK to version 1.6.0_21
you should read this to avoid another problem:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。打开eclipse出错的很好解决方法转java was started but returned exit code=1
最近在使用Eclipse时发现无法启动,或者启动后经常出现崩溃退出的情况,提示的错误信息都是“
java was started but returned exit code 1”,下载安装了最新版的Eclipse后还是没有解决问题。无奈之下只好百度之,翻了好几页都没有发现有用的信息,直接换到,终于在Eclipse Forum找到了一个靠谱的答案(网址是
),回答答案是“Eclipse is using the system default JRE that it finds in the windows system folders. You should point it to a JDK installation using eclipse.ini (as described here: http://wiki.eclipse.org/Eclipse.ini )”,大意是Eclipse启动的时候默认会使用从windows系统目录下找到的JRE作为默认的环境,由于我之前升级安装了一下JDK,所以系统目录下的JRE和实际的
Java安装是不匹配的,因此会出现运行Eclipse时报错的情况。
解决方案:
根据eclipse.ini文件的说明(
),该文件提供指定运行eclipse的JVM功能,需要在eclipse.ini中加入JVM的路径说明。语法很简单:
C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe
eclipse.ini说明文档中特别提到使用-vm参数的注意事项: (1)The -vm option and its value (the path) must be on separate lines.(-vm选项和其对应的javaw.exe的路径必须各占一行,这应该是参数解析的格式要求) (2)The value must be the full absolute path to the Java executable, not just to the Java home directory.(指定的虚拟机路径必须是指向可执行Java程序的完整绝对路径,不能只指定到Java_HOME目录。这个好理解,要指定JVM的话肯定要指定到具体的可执行文件去) (3)The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.(-vm选项必须放在-vmargs选项前,这是因为-vmargs选项后的值都是作为JVM的参数传给虚拟机的,如果-vm放在-vmargs之后就没有意义了。而-vmargs选项中一般可指定-Xms和-Xmx这两个内存参数)
& 2012 - 2014 &
&All Rights Reserved. &}

我要回帖

更多关于 java扩展 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信