简体   繁体   English

使用某些插件定制的Eclipse 3.5无法在目标计算机上启动

[英]Eclipse 3.5 customized with some plugins fails to start on target machine

i have been creating a customized Eclipse Version with some specific Plugins (CDT, AVR-Development) and after configuring and testing successfully on my machine, I zipped the eclipse-Folder and send it to my client to install onto the target machine. 我一直在使用某些特定的插件(CDT,AVR开发)创建定制的Eclipse版本,并在我的机器上成功配置和测试后,将eclipse-Folder压缩并发送给我的客户端以安装到目标机器上。

But when he tries to start eclipse he gets the following error in the Logfile: 但是,当他尝试启动Eclipse时,他在日志文件中收到以下错误:

    !SESSION 2010-06-28 19:24:57.856 -----------------------------------------------eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.osgi 4 0 2010-06-28 19:24:58.870
!MESSAGE Bundle reference:file:org.eclipse.equinox.simpleconfigurator_1.0.101.R35x_v20090807-1100.jar@1:start not found.

!ENTRY org.eclipse.osgi 4 0 2010-06-28 19:24:58.886
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

This looks like some files are missing or the configuration is wrong, but i can't reproduce the error. 看起来有些文件丢失或配置错误,但是我无法重现该错误。 I removed my workspace, moved the eclipse Folder around, tried everything under another User-Account. 我移走了工作区,将Eclipse文件夹移到了另一个位置,并尝试了另一个用户帐户下的所有内容。

Does anyone have an Idea why this works on my machine (it was a vanilla Win7-Installation) but fails on his (also, Win7 - fresh install) ? 有谁知道为什么这可以在我的机器上运行(这是普通的Win7安装),但在他的机器上(也就是Win7全新安装)失败了吗?

FYI, here's the configuration file, works on my machine: 仅供参考,这是配置文件,可在我的计算机上运行:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Thu Jun 10 14:10:03 CEST 2010
org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.cpp
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.101.R35x_v20090807-1100.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=@config.dir/../p2/
eclipse.application=org.eclipse.ui.ide.workbench

Any help is highly appreciated, thanks! 非常感谢您的任何帮助,谢谢! :) :)

Are you using a .product to produce your custom Eclipse build? 您是否正在使用.product来生成定制的Eclipse构建? Or are you adding plugins to an existing Eclipse build? 还是要向现有Eclipse构建中添加插件?

Either way, I'd recommend uzipping exactly what you sent your customer on a different machine than your development box. 无论哪种方式,我都建议在与开发箱不同的机器上准确地解压缩您发送给客户的内容。 It may give you a better chance to reproduce the problem. 它可能会给您一个更好的机会来重现该问题。

Based on the traces, this product "org.eclipse.epp.package.cpp.product" is in use. 根据跟踪,正在使用该产品“ org.eclipse.epp.package.cpp.product”。 My guess is that the plugin that defines the Application referenced by that product is either missing from your zip, or one of its dependencies is missing. 我的猜测是,您的zip缺少定义该产品引用的Application的插件,或者缺少其依赖项之一。

If you add -console and -noExit as command line arguments, you can get to the OSGi prompt. 如果将-console和-noExit添加为命令行参数,则可以进入OSGi提示符。 You can then type 'ss' to see the status of all the bundles. 然后,您可以键入“ ss”以查看所有捆绑软件的状态。 If you then type 'start ' for any resolved bundles you can see why they didn't start. 如果您随后为所有已解析的捆绑软件输入“ start”,则可以查看为什么它们没有启动。 This sort of debugging can be helpful when you are out of other ideas. 如果您没有其他想法,这种调试可能会有所帮助。

Using the 'ss' command on your system that is working and the system that is not will help identify if you are missing any bundles or have bundles in different states. 在运行中的系统和未运行的系统上使用“ ss”命令将有助于确定您是否丢失了任何捆绑软件或捆绑软件处于不同状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM