从命令行恢复到以前的配置?

发布于 2024-12-28 03:11:45 字数 1739 浏览 1 评论 0原文

我运行 eclipse 时遇到问题。安装 3 个插件(来自 TeXlipse)后, 我有一个错误:

!ENTRY org.eclipse.osgi 4 0 2012-01-21 13:57:28.430
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.

我尝试使用 eclipse -clean 运行它,但这没有帮助。

有没有办法从命令行恢复到以前的配置? 我用 google 搜索了一下,但只看到 IDE 中的 GUI 解决方案。我什至不确定该功能是否默认可用,或者它是一个附加插件。

如果我要手动删除已安装的插件,只需删除 eclipse/plugins 中相应的文件夹/文件就足够了吗?我看到两个新文件夹:

net.sourceforge.texlipse_1.5.0
de.vonloesch.pdf4eclipse.help_1.0.0.20111116150

还有两个文件:

de.vonloesch.pdf4Eclipse_1.0.1.201111161450.jar
org.bibsonomy.texlipseextension_0.1.0.jar

提前感谢您的帮助

p/s/ 我在 Ubuntu 11.10 中运行 面向并行应用程序开发人员的 Eclipse IDE(包括孵化组件) code> 上面有 SVN/EGit 插件。现在是TeXlipse

更新1:

我试图运行这样的东西: ./eclipse -application org.eclipse.equinox.p2.director -uninstallIU de.vonloesch.pdf4eclipse.help_1.0.0.201111161450 -profile epp.package.parallel

./eclipse -application org.eclipse.equinox.p2.director -revert 1327068337804 -profile epp.package.parallel

但它只是运行应用程序,而不“监听”命令行参数...

UPDATE2:

这就是我尝试从以下位置启动 p2 时所拥有的: OSGi 控制台(可以通过 ./eclipse -console -noexit 启动):

osgi> start 166
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.p2.console_1.0.300.v20110502-1955 [166]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.provisional.p2.director; version="0.0.0"

I have a problem running eclipse. After installing 3 plugins (from TeXlipse),
i have an error:

!ENTRY org.eclipse.osgi 4 0 2012-01-21 13:57:28.430
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.

I tried to run it with eclipse -clean but this does not help.

Is there a way to revert to previous configuration from the command line?
I googled it, but see only GUI solutions from within the IDE. I'm not even sure if that feature is available by default, or it's an additional plugin.

If i'm to remove installed plugins manually, is it enough just to delete appropriate folders/files in eclipse/plugins? I see two folders new:

net.sourceforge.texlipse_1.5.0
de.vonloesch.pdf4eclipse.help_1.0.0.20111116150

and also two files:

de.vonloesch.pdf4Eclipse_1.0.1.201111161450.jar
org.bibsonomy.texlipseextension_0.1.0.jar

Thank you in advance for your help

p/s/ I run Eclipse IDE for Parallel Application Developers (includes Incubating components) in Ubuntu 11.10 with SVN/EGit plugins on top. And now TeXlipse.

UPDATE1:

i was trying to run something like this:
./eclipse -application org.eclipse.equinox.p2.director -uninstallIU de.vonloesch.pdf4eclipse.help_1.0.0.201111161450 -profile epp.package.parallel

or

./eclipse -application org.eclipse.equinox.p2.director -revert 1327068337804 -profile epp.package.parallel

but it just runs the app and don't "listen" to command-line arguments...

UPDATE2:

that's what I have when I try to start p2 from OSGi console (which can be started via ./eclipse -console -noexit):

osgi> start 166
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.p2.console_1.0.300.v20110502-1955 [166]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.provisional.p2.director; version="0.0.0"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笑着哭最痛 2025-01-04 03:11:45

我可以启动 Eclipse(一次!),

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

然后删除最后安装的插件,这可能导致了问题......它没有帮助。

当你遇到类似的错误时

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

您可以尝试删除以下文件

rmworkspace/.metadata/.plugins/org.eclipse.core.resources /.snap

那么发生了什么:
我可以启动 Eclipse,并且在 Eclipse 中我可以选择恢复安装
[日蚀->关于->安装历史记录]

所以我的解决方法应该允许启动 Eclipse 并执行进一步的步骤。

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.

乞讨 2025-01-04 03:11:45

一种方法是使用 OSGi 控制台调用 p2。查看链接上的说明,您将看到恢复 Eclipse 的命令。

如果这不起作用(即,您无法让 Eclipse 开始使用控制台),那么您可以使用 p2director 应用程序 并指定 -revert。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文