eclipse安装踩坑记

官网下eclipse太慢了,朋友想从我电脑上拷一个eclipse,但是一搞就帮他搞了一上午。诶~
我先给了他一个压缩包(文章末有打包的eclipse),他解压以后点eclipse.exe出现了这个报错
eclipse安装踩坑记
The eclipse executable launcher was unable to locate its companion shared library
它的意思应该是无法找到配套的库文件。找我帮忙,我去网上搜了一下都是说给这个文件
eclipse安装踩坑记
说把这个文件改成当前文件夹就好了
eclipse安装踩坑记
我当前plugins的文件路径是D:\编程软件\eclipse\eclipse
我无脑试了一下,没起作用,我去了D:\编程软件\eclipse\eclipse\plugins下
eclipse安装踩坑记
就一个文件而且和配置的那个环境还不太一样,但是为什么在我电脑上能用,放他电脑上就不行了呢,我打开我的配置文件
eclipse安装踩坑记
我的路径并不是当前路径,我的plugins在C:/Users/86156/.p2/pool/这,
很好奇,为什么路径在这,我去这个文件夹下看了一下
eclipse安装踩坑记
不知道为什么,我把库文件给放这里了,然后我把这个库文件也打包给他发过去,又重新给他配置了环境(文章末有打包的库文件)
eclipse安装踩坑记
注意,这里startup,launcher.library和JDK的路径千万不能有中文!
运行的时候又说编码错误,我马上想到是不是不能中文路径,给他换了一个路径发现确实不能有中文,但是又报了另一个错误
!ENTRY org.eclipse.equinox.launcher 4 0 2020-04-22 11:21:45.840 !MESSAGE Could not find extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.500.v20190516-1407.jar !ENTRY org.eclipse.equinox.launcher 4 0 2020-04-22 11:21:45.918 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
eclipse安装踩坑记
看见这个报错就去
eclipse安装踩坑记 这个目录下改和日志同级有一个config.ini文件,里面一个也有一堆路径,改到与电脑里配置路径相匹配就好
最后又报了Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).这个错误
eclipse安装踩坑记
看见这个错误就去configration目录下
eclipse安装踩坑记
这个目录下有个
eclipse安装踩坑记
直接记事本打开
eclipse安装踩坑记
这里面就是plugins下的所有的包的路径,直接替换,把所有的旧路径改为自己电脑上的路径就好了。
外附eclipse打包:eclipse打包
提取码:v824
库文件打包:库文件
提取码:pv2g
人生建议:去官网下!