Capella crashes after "Select a directory as workspace"

Every time I start Capella it shows me the workspace dialog. After I confirm it crashes with the following message:
!SESSION 2019-11-22 13:11:52.346 -----------------------------------------------
eclipse.buildId=unknown
java.version=10.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_AT
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2019-11-22 13:11:57.018
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(In jectorImpl.java:410)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorIm pl.java:318)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(Co ntextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.creat eDefaultHeadlessContext(E4Application.java:491)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.creat eDefaultContext(E4Application.java:505)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.creat eE4Workbench(E4Application.java:204)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:61 4)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:148)
at org.polarsys.capella.core.platform.sirius.ui.app.CapellaAppl ication.start(CapellaApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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(EclipseS tarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(Injector Impl.java:124)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(In jectorImpl.java:399)
… 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:433)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass (ModuleClassLoader.java:150)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
… 25 more
!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-11-22 13:11:57.018
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(Inject orImpl.java:450)
at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor .java:156)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ ContextInjectionListener.update(ContextObjectSupplier.java:7 8)
at org.eclipse.e4.core.internal.contexts.TrackableComputationEx t.update(TrackableComputationExt.java:111)
at org.eclipse.e4.core.internal.contexts.TrackableComputationEx t.handleInvalid(TrackableComputationExt.java:74)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose (EclipseContext.java:178)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSG i.dispose(EclipseContextOSGi.java:99)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSG i.bundleChanged(EclipseContextOSGi.java:141)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispat chEvent(BundleContextImpl.java:908)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.pu blishBundleEventPrivileged(EquinoxEventPublisher.java:213)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.pu blishBundleEvent(EquinoxEventPublisher.java:120)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.pu blishBundleEvent(EquinoxEventPublisher.java:112)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor. publishModuleEvent(EquinoxContainerAdaptor.java:168)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:4 76)
at org.eclipse.osgi.container.Module.doStop(Module.java:634)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.ja va:202)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBund le$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:433)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass (ModuleClassLoader.java:150)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
… 21 more
I tried different versions of java and also to run the .exe as admin, nothing helped.
On another PC with Win7 Capella works fine (I directly copied the capella-folder to that PC without change).
My eclipse.ini looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.ja r
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 551.v20171108-1834
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms1000m
-Xmx3000m
-Xss4m

Hi,
The error shows that your Capella is starting with a Java 10 JVM, Capella requires Java 1.8 64 bits, ideally JRE 1.8.0_121_64b
Let me know if it solves your issue.
Stéphane

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.