将最喜欢的库添加到Eclipse 4应用程序 [英] Adding zest libraries to Eclipse 4 app

查看:138
本文介绍了将最喜欢的库添加到Eclipse 4应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Zest和Eclipse e4开发的新手。我目前的目标是构建一个简单的应用程序,并在其中一个视图中使用Zest来可视化图形。所以我正在关注这个教程,最后我结束了一个简单的工作应用程序,包括一个主窗口分为3部分。



现在我想在其中一个部分显示图形。为了做到这一点,我已经从这里将整个GEF框架下载到Eclipse中使用Eclipse的安装新软件功能。



接下来,我尝试将以下依赖项添加到清单文件的Required-plugins部分: org.eclipse.zest .core org.eclipse.zest.layouts



运行项目时结束于


找不到申请ID


当我删除它们时,一切正常工作。你们有什么想法可以解决这个问题吗?



这是错误消息:

 !SESSION 2013-11 -18 18:38:56.285 ------------------------------------------- ---- 
eclipse.buildId = unknown
java.version = 1.7.0_21
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86,WS = win32,NL = en_US
框架参数:-product com.andrey.e4.rcp.todo.product -clearPersistedState
命令行参数:-product com.andrey.e4.rcp.todo.product -data C:\Users\Andrez\Desktop\projects /../ runtime-com.andrey.e4.rcp.todo.product -dev文件:C:/Users/Andrez/Desktop/projects/.metadata /.plugins/org.eclipse.pde.core/com.andrey.e4.rcp.todo.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clearPersistedState

!ENTRY org.eclipse.equinox.app 0 0 2013-11-18 18:38:57.835
!MESSAGE找不到产品com.andrey.e4.rcp.todo.product。

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.890
!MESSAGE由于以下根限制未解决,一个或多个软件包未解决:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.891
!MESSAGE Bundle initial @ reference:file:../../ projects / com.andrey.e4。 rcp.todo /没有解决。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.891
!MESSAGE缺少必需的bundle org.eclipse.zest.layouts_1.1.0。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.891
!MESSAGE缺少所需的bundle org.eclipse.zest.core_1.5.0。

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.900
!MESSAGE以下是未解决的捆绑包的完整列表,请参阅先前的日志条目存在的根本原因:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.901
!MESSAGE Bundle com.andrey.e4.rcp.todo_1。 0.0.qualifier [70]没有解决。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.901
!MESSAGE缺少必需的bundle org.eclipse.zest.core_1.5.0。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.901
!MESSAGE缺少必需的bundle org.eclipse.zest.layouts_1.1.0。

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.932
!MESSAGE一个或多个软件包未解决,因为以下root约束未解决:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.932
!MESSAGE Bundle initial @ reference:file:../../ projects / com.andrey.e4。 rcp.todo /没有解决。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.933
!MESSAGE缺少必需的bundle org.eclipse.zest.layouts_1.1.0。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.933
!MESSAGE缺少必需的bundle org.eclipse.zest.core_1.5.0。

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.939
!MESSAGE以下是未解决的捆绑包的完整列表,请参见先前的日志条目的根本原因如果存在:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.939
!MESSAGE Bundle com.andrey.e4.rcp.todo_1。 0.0.qualifier [70]没有解决。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.939
!MESSAGE缺少必需的bundle org.eclipse.zest.core_1.5.0。
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.940
!MESSAGE缺少必需的bundle org.eclipse.zest.layouts_1.1.0。

!ENTRY org.eclipse.osgi 4 0 2013-11-18 18:38:57.946
!MESSAGE应用程序错误
!STACK 1
java.lang。 RuntimeException:没有找到应用程序ID。
在org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
在org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher。 java:79)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter。 java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown来源)
在java.lang.reflect.Method.invoke(未知源)
在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
在org。 eclipse.equinox.launcher.Main.basicRun(Main.java:591)
在org.eclipse.equinox.launcher.Main.run(Main.java:1450)
在org.eclipse.equinox.launcher.Main.main(Main.java:1426)


解决方案

首先我想尝试的是点击添加所需的插件按钮在运行配置的插件选项卡中。您还可以在运行配置的主选项卡中尝试运行其他产品。


I am new to both Zest and Eclipse e4 development. My aim for the moment is to build a simple app and in one of its views to visualize a graph using Zest. So I am following this tutorial and I ended up with a simple working app consisting of one main window split in 3 parts.

Now I want to display a graph in one of the parts. In order to do that I have downloaded the whole GEF framework into my Eclipse from here using the "Install New Software" feature of Eclipse. So far so good.

Next I try to add the following dependencies to the Required-plugins section of the manifest file: org.eclipse.zest.core and org.eclipse.zest.layouts

Upon running the project I end up with

No Application ID found

When I remove them everything is working as usual. Do you guys have any idea how I can fix this?

This is the error message:

!SESSION 2013-11-18 18:38:56.285 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product com.andrey.e4.rcp.todo.product -clearPersistedState
Command-line arguments:  -product com.andrey.e4.rcp.todo.product -data     C:\Users\Andrez\Desktop\projects/../runtime-com.andrey.e4.rcp.todo.product -dev file:C:/Users/Andrez/Desktop/projects/.metadata/.plugins/org.eclipse.pde.core/com.andrey.e4.rcp.todo.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clearPersistedState

!ENTRY org.eclipse.equinox.app 0 0 2013-11-18 18:38:57.835
!MESSAGE Product com.andrey.e4.rcp.todo.product could not be found.

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.890
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.891
!MESSAGE Bundle initial@reference:file:../../projects/com.andrey.e4.rcp.todo/ was not resolved.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.891
!MESSAGE Missing required bundle org.eclipse.zest.layouts_1.1.0.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.891
!MESSAGE Missing required bundle org.eclipse.zest.core_1.5.0.

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.900
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.901
!MESSAGE Bundle com.andrey.e4.rcp.todo_1.0.0.qualifier [70] was not resolved.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.901
!MESSAGE Missing required bundle org.eclipse.zest.core_1.5.0.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.901
!MESSAGE Missing required bundle org.eclipse.zest.layouts_1.1.0.

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.932
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.932
!MESSAGE Bundle initial@reference:file:../../projects/com.andrey.e4.rcp.todo/ was not resolved.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.933
!MESSAGE Missing required bundle org.eclipse.zest.layouts_1.1.0.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.933
!MESSAGE Missing required bundle org.eclipse.zest.core_1.5.0.

!ENTRY org.eclipse.osgi 2 0 2013-11-18 18:38:57.939
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-11-18 18:38:57.939
!MESSAGE Bundle com.andrey.e4.rcp.todo_1.0.0.qualifier [70] was not resolved.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.939
!MESSAGE Missing required bundle org.eclipse.zest.core_1.5.0.
!SUBENTRY 2 com.andrey.e4.rcp.todo 2 0 2013-11-18 18:38:57.940
!MESSAGE Missing required bundle org.eclipse.zest.layouts_1.1.0.

!ENTRY org.eclipse.osgi 4 0 2013-11-18 18:38:57.946
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

解决方案

First thing I'd try is clicking the 'Add required Plug-ins' button in the 'Plug-ins' tab of your Run Configuration. You could also try running a different product in the 'Main' tab of the run configuration.

这篇关于将最喜欢的库添加到Eclipse 4应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆