缺少约束:捆绑包必需的执行环境:JavaSE-1.8

时间:2019-05-14 13:40:47

标签: eclipse-plugin

将32位应用程序转换为64位系统遇到了以下问题 运行时错误:

org.osgi.framework.BundleException:无法解析包“ com.rci.core_util_1.0.0 [4]”。原因:缺少约束:Bundle-RequiredExecutionEnvironment:JavaSE-1.8

在org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)在org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)在org.eclipse上的org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)在org.eclipse上的org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)。 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)上的osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)在org.eclipse.osgi.framework处。 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)位于org.eclipse.osgi.framework.internal.core处的internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)。 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:4)上的StartLevelManager.doSetStartLevel(StartLevelManager.java:243) 40)在org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)在org.eclipse.osgi.framework.eventmgr.EventManager $ EventThread.run(EventManager.java:337)

该插件配置为使用JavaSe1.8 目标平台配置为使用默认JRE,即Jjre1.8.0-211

已安装的JRE是jdk1.8.0_211

使用Eclipse IDE版本2019-03(4.11.0)进行开发(如果版本为20190314-1200

在窗口->首选项->插件开发->目标平台下,在“环境”选项卡下,Java Runtime环境被设置为JavaSe-1.8

** Platform Details: 

*** System properties: 

applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi awt.toolkit=sun.awt.windows.WToolkit ds.delayed.keepInstances=true ds.delayed.keepInstances.default=true eclipse.application=org.eclipse.ui.ide.workbench eclipse.buildId=4.11.0.I20190307-0500 eclipse.commands=-os win32 -ws win32 -arch x86_64 -showsplash – 


    C:\Users\ \eclipse\committers-2019-03\eclipse\eclipse.exe
    -name
   Eclipse
   --launcher.library
C:\Users\   \.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016\eclipse_1801.dll
-startup
C:\Users\ \eclipse\committers-2019-03\eclipse\\plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
--launcher.appendVmargs
-product
org.eclipse.epp.package.committers.product
-vm
C:\Program Files\Java\jre1.8.0_211\bin\server\jvm.dll
eclipse.home.location=file:/C:/Users/<>/eclipse/committers-2019-03/eclipse/
eclipse.launcher=C:\Users\<>\eclipse\committers-2019-03\eclipse\eclipse.exe
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=file:/C:/Users/ /.p2/
eclipse.p2.max.threads=10
eclipse.p2.profile=C__Users_ _eclipse_committers-2019-03_eclipse
eclipse.product=org.eclipse.epp.package.committers.product
eclipse.startTime=1557783341059
eclipse.stateSaveDelayInterval=30000
eclipse.vm=C:\Program Files\Java\jre1.8.0_211\bin\server\jvm.dll
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.8

 Eclipse the target platform is:  Jave Runtime Enviorment JavaSE-1.8
                                  org.eclipse.swt 3.6.2v3659c

0 个答案:

没有答案