感谢支持
我们一直在努力

Ubuntu MyEclipse7.5 一个错误的修复过程

周日下午打开MyEclipse打算继续完善帮朋友做的一个东西。运行后不料确弹出了一个错误提示框。


“The Myeclipse exectutable launcher was unable to locate its companion shared library.”


没办法先google吧,看到其他也有很多同学发贴咨询的,大意就是说自己使用自动更新后再次运行就提示此错误了。找了好几圈就是没有看到成功案例的。最后看到一个使用mac os x系统的同学修复成功了(点这里查看原帖)。可是我使用的系统是Linux(Ubuntu发行版,ps:最近10.04预览版已经relase,据说界面已经耳目一新了。),另外该同学杯具了,又装重新装了一次MyEclipse,题外话,如果他花点时间找出问题,我是不是就可以少花2个小时来折腾了??,也许正真悲剧的人是我,大好的时间阿,就浪费掉了。好了继续是说我是怎么解决的。


就在我打算放弃的时候看到该位同学的提问,我也检查了一下myeclipse.ini惊奇的发现居然该文件不存在。幸运的是以前修改过该文件,旁边还有一个备份文件,赶紧的将这个备份文件另存为了myeclipse.ini,再次运行。ok,启动界面在欢快的闪动着。就此问题已经修复成功,之前通过URL安装的phpEclipse也健在。。


简短的描述一下:


系统:Ubuntu


Myeclipse版本:7.5


经过:通过URL安装插件


问题现象:运行时提示“”


解决方法:检查以下安装目录下的配置文件是否存在,如果不存在可以适用本文的方法来解决。


贴出我的myeclipse.ini内容,方便丢失配置文件的同学来修复问题


-startup
Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
–launcher.library
Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
-clean
-configuration
/SoftWare/MyEclipse 7.5/configuration
-vm
/SoftWare/MyEclipse 7.5/Common/binary/com.sun.Java.jdk.linux.x86_1.6.0.013/bin/java
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
其中的路径请更具实际情况修改。


后来我也看到了另外一种解决方法,但是我没又看明白。

Eclipse:executable launcher was unable to locate its companion shared library


前天装了一个Plugin,后来插件有问题无法启动,就把插件删掉,但今天启动Eclipse,发生了错误:The user executable launcher was unable to locate its companion shared library,原来是装插件的时候在Eclipse的目录下的eclipse.ini文件的启动配置被修改了,把该文件的startup配置部分改一下,由于我装这个插件的时候,启动的配置是被追加到eclipse.ini文件,因此我把后面追加的-startup的部分删掉,保留原来的启动配置就OK了, 这时启动一下Eclipse就好了。

SUSE MyEclipse 7.5


当更新SVN插件后,重启出现此错误:


The Myeclipse executable launcher was unable to locate its companion shared library


网上没有找到linux下的解决办法,只能重装


然后手动安装SVN,昨天用的好好的,今天开机又出现同样错误,因为昨天重装后忘记把MyEclipse自动更新功能关了,今天一启动就自动更新了,可能有的包可以更新,有的包在官方网上更新不了,造成问题,解决办法:


1、重装MyEclipse 7.5


2、优化MyEclipse 7.5


1、去除不需要加载的模块


一个系统20%的功能往往能够满足80%的需求,MyEclipse也不 例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止 加载启动。通过Windows – Preferences打开配置窗口,依次选择左侧的General – Startup and Shutdown,这个时候在右侧就显示出了Eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。


windows–>perferences–>general–>startup and shutdown


关掉没用的启动项:


WTP :一个跟myeclipse差不多的东西,主要差别是 WTP 是免费的,如果使用myeclipse,这个可以取消


Mylyn:组队任务管理工具,类似于 CVS ,以任务为单位管理项目进度,没用到的可以取消


Derby:一种保存成 jar 形式的数据库,我没用到,取消


一大排以 MyEclipse EASIE 打头的启动项:myeclipse 支持的服务器,只选自己用的,其他取消,比如我只选了tomcat6.x


2、取消MyEclipse在启动时自动验证项目配置文件


默认情况下MyEclipse在启动的时候会自动验证每个项目的配置文件,这是一个非常耗时的过程,


可以在Preferences窗口依次选择 MyEclipse Enterprise Workbench – Validation,然后在右侧的Validator列表中只保留 Manual 项就可以了(Manual全部勾选,Bulid项只留下第一项)。


如果需要验证的时候只需要选中文件,然后右键选择 MyEclipse – Run Validation就可以了。


windows–>perferences–>myeclipse–>validation


把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator


手工验证方法:


在要验证的文件上,单击鼠标右键–>myeclipse–>run validation


3、去掉拼写检查(如果你觉的有用可以不去)


拼写检查会给我们带来不少的麻烦,我们的方法命名都会是单词的缩写,他也会提示有错,所以最好去掉,没有多大的用处:


windows–>perferences–>general–>validation->editors->Text Editors->spelling


myeclipse 打开 jsp 的默认编辑器不好,会同时打开预览


windows–>perferences–>general–>editors->file associations,


把默认改成 MyEclipse JSP Editor()


原默认的jsp编辑器是 MyEclipse Visual JSP Designer,顾名思义,此编译器是jsp可视化编辑器,对于初学者有很多的帮助,


但修改此项的默认编辑器其实可以提高启动速度)


4、关闭自动更新


如果是myeclipse7.5:


(1)关掉maven自动更新:


window-preferences-MyEclipse Enterprise Workbench-Maven4MyEclipse-Maven,


关闭所有Download和Update开头的选项,共四项(去掉前面的勾)


(2)关闭更新调度:window –> preferences –> General –> Startup and Shutdown –> Automatic Updates Scheduler(去掉前面的勾)


(3)window –> preferences –>MyEclipse Enterprise workbench–>Myeclipse Dashboard,关闭Show……on start


很抱歉,因为您在网易相册发布了违规信息,账号被屏蔽。被屏蔽期间他人无法访问您的相册。


去帮助中心,了解如何重新恢复服务。

10.01.08“the eclipse executable launcher was unable to locate its companion shared library” AKA Fixing eclipse for mac os xPosted in programming at 15:11 by dalore


Recently I did an upgrade of eclipse within eclipse using the “software updates” feature as well as adding some packages like svn and coldfusion for eclipse. When I restarted I ran into a small issue, it wouldn’t start.


The error message I kept getting was


the eclipse executable launcher was unable to locate its companion shared library


Now googling error messages normally shows someone whose experienced it and a solution, not in this case.


Digging around I found the the eclipse binary in:


/Applications/eclipse/Eclipse.app/Contents/MacOS


There is a file called eclipse and an eclipse.ini. Running this binary gave me this error:



 ./eclipse
dlopen(../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.100.v20080509-1800, 2): image not found


Indeed I verified that such a file no longer existed, I did notice something similarly named. I edited the eclipse.ini file and replaced it:


../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731


It then started up as normal.

楼主发表于:2010-03-03 19:03:12今天下午在myeclipse7.5中安装了svn后 再启动时 不能启动,日志文件中提示信息:
  !SESSION Wed Mar 03 18:21:12 CST 2010 —————————————–  –
!ENTRY org.eclipse.equinox.launcher 4 0 2010-03-03 18:21:12.281
!MESSAGE Exception launching the Eclipse Platform:
!STACK
Java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.equinox.launcher.Main.getSplashLocation(Main.java:1847)
at org.eclipse.equinox.launcher.Main.handleSplash(Main.java:1777)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:444)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)



然后开始找原因 :发现少了 myeclipse.ini 文件
然后从别的地方考了该文件,并修改了:
-startup
../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
–launcher.library
../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-clean
-configuration
configuration
-vm
D:\install File\MyEclipse7.5\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
-vmargs
-Xmx384m
-XX:MaxPermSize=384m
-XX:ReservedCodeCacheSize=96m



可是还是不能启动 提示:
The Myeclipse exectutable launcher was unable to locate its companion shared library.
请问 这是什么原因?

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu MyEclipse7.5 一个错误的修复过程
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏