Eclipse启动卡在Loading org.eclipse.egit.core的两种解决方法
(2017-09-19 11:36:58)方法一:
1. 打开终端, cd到.project目录下
cd3. 重启eclipse
在使用此方法时想偷懒一下,因为进入到每一个文件夹去删除 .snap比较多,就写了一个Python的Script去批量做。代码如下:
wpath = '/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects'
for root, dirs, files in os.walk(wpath):
for f in files:
if 'snap' in f:
os.remove(os.path.join(root,f))
方法二: 转载自
http://blog.csdn.net/fireme5535/article/details/73547041
1. 删除workspace/.metadata目录下的.lock文件(此文件为隐藏文件)
2. cd /Applications/Eclipse.app/Contents/MacOS/
3. ./eclipse -clean -refresh
4. 之后会出现如下
*********MacBook:MacOS ******$ ./eclipse -clean -refresh
org.eclipse.m2e.logback.configuration: The
org.eclipse.m2e.logback.configuration bundle was activated before
the state location was initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /Users/liusongshu/Documents/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://956.fwk832947102:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://956.fwk832947102:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type
[ch.qos.logback.classic.util.ContextSelectorStaticBin
org.eclipse.m2e.logback.configuration: Initializing logback
然后按住ctrl+z然后输入bg 1
^Z
[1]+
****MacBook:MacOS *****$ bg 1
[1]+ ./eclipse -clean -refresh &
ps. 如果你的Eclipse的配置文件eclipse.ini中没有配置-vm,需要在eclipse或者环境变量中指定JAVA_HOME,不然第三步会出现乱七八糟的问题
个人体会:
发现如果Eclipse是Neon的话路径可能不太一样,我的电脑是在:
/Users/edisonshi/eclipse/jee-neon/Eclipse.app/Contents/MacOS

加载中…