revert to previous configuration from command-line?

痞子三分冷 提交于 2019-12-05 05:19:20

One way to do this is to invoke p2 using the OSGi console. Look through the instructions on the link, you will see the command to revert your Eclipse.

If that does not work (that is, you cannot get Eclipse started to use the console), then you can use the p2 director application and specify -revert.

I could launch eclipse (once!) with

/Applications/eclipse/Eclipse.app/Contents/MacOS > ./eclipse -clean

than I removed the last installed plugin, which may have caused the problem... It didn't help.

When you got an error similar to

java.lang.ExceptionInInitializerError at org.eclipse.wb.internal.core.preferences.PreferenceInitializer.initializeDefaultPreferences(PreferenceInitializer.java:50)

you can try to delete the following file

rm workspace/.metadata/.plugins/org.eclipse.core.resources/.snap

So what happened: I can start eclipse and within eclipse I could chose revert installation [ECLIPSE -> About -> INSTALLATION HISTORY]

So my workaround should allow to to start eclipse and perform further steps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!