Eclipse Designer Error on startup [FIXED]

I did download and install the old Java that was a dependancy. I haven’t restarted (and honestly won’t be able to for a while)

Any bit of help would be great (@Kai I think you’re maintainer right?) Thanks!!

!SESSION 2016-08-25 12:37:34.308 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_65
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Command-line arguments:  -os macosx -ws cocoa -arch x86_64

!ENTRY org.eclipse.smarthome.designer.core 4 0 2016-08-25 12:37:35.577
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.designer.core [225]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
    -> Export-Package: org.eclipse.smarthome.config.core; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.config.core"; version="0.0.0"
       org.eclipse.smarthome.config.core [217]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
           -> Export-Package: org.eclipse.smarthome.core.common; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
              org.eclipse.smarthome.core [218]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.smarthome.designer.ui 4 0 2016-08-25 12:37:35.580
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.designer.ui [226]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
    -> Export-Package: org.eclipse.smarthome.config.core; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.config.core"; version="0.0.0"
       org.eclipse.smarthome.config.core [217]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
           -> Export-Package: org.eclipse.smarthome.core.common; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
              org.eclipse.smarthome.core [218]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.smarthome.config.core 4 0 2016-08-25 12:37:35.626
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.config.core [217]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
    -> Export-Package: org.eclipse.smarthome.core.common; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
       org.eclipse.smarthome.core [218]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.smarthome.model.item 4 0 2016-08-25 12:37:35.630
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.item [230]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.autoupdate
    -> Export-Package: org.eclipse.smarthome.core.autoupdate; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core.autoupdate"; version="0.0.0"
       org.eclipse.smarthome.core.autoupdate [219]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.events
           -> Export-Package: org.eclipse.smarthome.core.events; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"; uses:="org.eclipse.smarthome.core.items,org.osgi.service.event,org.eclipse.smarthome.core.types"
              org.eclipse.smarthome.core [218]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.smarthome.core.persistence 4 0 2016-08-25 12:37:39.280
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.persistence [220]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
    -> Export-Package: org.eclipse.smarthome.config.core; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.config.core"; version="0.0.0"
       org.eclipse.smarthome.config.core [217]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
           -> Export-Package: org.eclipse.smarthome.core.common; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
              org.eclipse.smarthome.core [218]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.smarthome.core.voice 4 0 2016-08-25 12:37:39.283
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.voice [224]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
       org.eclipse.smarthome.core [218]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
``
Snippit from the bottom


!ENTRY org.eclipse.jdt.annotation 2 0 2016-08-25 12:37:40.349
!MESSAGE Could not resolve module: org.eclipse.jdt.annotation [171]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"

!ENTRY org.eclipse.smarthome.core.voice 2 0 2016-08-25 12:37:40.349
!MESSAGE Could not resolve module: org.eclipse.smarthome.core.voice [224]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
-> Export-Package: org.eclipse.smarthome.core.audio; bundle-version=“0.9.0.201608240508”; bundle-symbolic-name=“org.eclipse.smarthome.core”; version=“0.0.0"
org.eclipse.smarthome.core [218]
Unresolved requirement: Require-Capability: osgi.ee; filter:=”(&(osgi.ee=JavaSE)(version=1.7))"

!ENTRY org.eclipse.smarthome.model.core 2 0 2016-08-25 12:37:40.349
!MESSAGE Could not resolve module: org.eclipse.smarthome.model.core [229]
Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
-> Export-Package: org.eclipse.smarthome.config.core; bundle-version=“0.9.0.201608240508”; bundle-symbolic-name=“org.eclipse.smarthome.config.core”; version=“0.0.0"
org.eclipse.smarthome.config.core [217]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
-> Export-Package: org.eclipse.smarthome.core.common; bundle-version=“0.9.0.201608240508”; bundle-symbolic-name=“org.eclipse.smarthome.core”; version=“0.0.0"
org.eclipse.smarthome.core [218]
Unresolved requirement: Require-Capability: osgi.ee; filter:=”(&(osgi.ee=JavaSE)(version=1.7))”

!ENTRY org.eclipse.osgi 4 0 2016-08-25 12:37:40.351
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application “org.eclipse.smarthome.designer.ui.application” could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.mwe.core.WorkflowRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.pde.build.Build, org.eclipse.ui.ide.workbench.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

Still working through this - I thought by the first part of the error that I was missing some runtime prereq. DOesn’t seem to be the case though?

Hi,

i have the same error on an iMac. With my MacBook pro no problems at all… No idea what the differences are.

Jens

Okay at least I’m not crazy and I’m not missing some large piece. I’ll mess around and see if I can’t find a work around.

I used my brain (hah - seldom) and read the log - and figured I’d give a shot installing 1.7 as well as 1.6 which was prompted on running the designer the first time.

Turns out there is some dependency on 1.7 so installing that JRE from Oracle worked. So if you have the same error (bottom of the script block) about 1.7 - install 1.7 in addition to 1.6 and the other runtime versions.

!SESSION 2016-08-29 09:38:02.522 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_65
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Command-line arguments:  -os macosx -ws cocoa -arch x86_64

!ENTRY org.eclipse.smarthome.designer.core 4 0 2016-08-29 09:38:03.644
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.designer.core [225]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
    -> Export-Package: org.eclipse.smarthome.config.core; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.config.core"; version="0.0.0"
       org.eclipse.smarthome.config.core [217]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.common
           -> Export-Package: org.eclipse.smarthome.core.common; bundle-version="0.9.0.201608240508"; bundle-symbolic-name="org.eclipse.smarthome.core"; version="0.0.0"
              org.eclipse.smarthome.core [218]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
1 Like

Right, this is indeed nasty of Apple to prompt the user to install the (absolutely outdated) Java6 when he tries to launch a Java application. Indeed, you should instead install Oracle JDK 7 or even better 8.

For me below was fix

In eclipse.ini, make sure it is pointing to java8 with correct jvm.dll vm entry.

-vm
C:\Program Files\Java\jre1.8.0_131\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8