Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 540484

Summary: Lots of class not found exception if I start a runtime Eclipse with jdt.core
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Stephan Herrmann <stephan.herrmann>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, loskutov, matthias.sohn, stephan.herrmann
Version: 4.10   
Target Milestone: 4.14 M1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Full log
none
Full error log without EGit present in runtime Eclipse none

Description Lars Vogel CLA 2018-10-25 14:56:39 EDT
I showed this issue Manoj on the EclipseCon and he suggested to open a bug for that.

I'm using Eclipse SDK
Version: 2018-12 (4.10)
Build id: I20181023-1200
OS: Linux, v.4.15.0-36-generic, x86_64 / gtk 3.22.30
Java version: 11

If I import jdt.core based on origin/master and start a runtime IDE with the imported plug-ins I see lots of class not found exceptions. 



!ENTRY org.eclipse.osgi 4 0 2018-10-25 20:56:15.241
!MESSAGE An error occurred while automatically activating bundle org.eclipse.jdt.ui (1849).
!STACK 0
org.osgi.framework.BundleException: Error starting module.
	at org.eclipse.osgi.container.Module.doStart(Module.java:593)
	at org.eclipse.osgi.container.Module.start(Module.java:452)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:557)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:39)
	at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass(MultiSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.eclipse.egit.ui.Activator.hasJavaPlugin(Activator.java:1119)
	at org.eclipse.egit.ui.Activator.registerTemplateVariableResolvers(Activator.java:350)
	at org.eclipse.egit.ui.Activator.start(Activator.java:342)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:782)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:775)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:732)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
	at org.eclipse.osgi.container.Module.doStart(Module.java:584)
	at org.eclipse.osgi.container.Module.start(Module.java:452)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:557)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:612)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getSourceProviders(WorkbenchServiceRegistry.java:177)
	at org.eclipse.ui.internal.services.SourceProviderService.readRegistry(SourceProviderService.java:107)
	at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:2341)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:35)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5748)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:98)
	at org.eclipse.ui.internal.Workbench.initializeDefaultServices(Workbench.java:2336)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1631)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2804)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:623)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jdt/core/IBufferFactory
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:766)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:719)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
	at org.eclipse.osgi.container.Module.doStart(Module.java:584)
	... 71 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.IBufferFactory cannot be found by org.eclipse.jdt.ui_3.16.0.v20181019-1929
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 80 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/jdt/core/IBufferFactory
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:766)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:719)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
	at org.eclipse.osgi.container.Module.doStart(Module.java:584)
	at org.eclipse.osgi.container.Module.start(Module.java:452)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:557)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:39)
	at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass(MultiSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.eclipse.egit.ui.Activator.hasJavaPlugin(Activator.java:1119)
	at org.eclipse.egit.ui.Activator.registerTemplateVariableResolvers(Activator.java:350)
	at org.eclipse.egit.ui.Activator.start(Activator.java:342)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:782)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:775)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:732)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
	at org.eclipse.osgi.container.Module.doStart(Module.java:584)
	at org.eclipse.osgi.container.Module.start(Module.java:452)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:557)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:612)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getSourceProviders(WorkbenchServiceRegistry.java:177)
	at org.eclipse.ui.internal.services.SourceProviderService.readRegistry(SourceProviderService.java:107)
	at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:2341)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:35)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5748)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:98)
	at org.eclipse.ui.internal.Workbench.initializeDefaultServices(Workbench.java:2336)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1631)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2804)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:623)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.IBufferFactory cannot be found by org.eclipse.jdt.ui_3.16.0.v20181019-1929
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 80 more
Comment 1 Andrey Loskutov CLA 2018-10-25 15:18:45 EDT
Just to make sure: can you start same IDE with *any other* JDK?

Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.IBufferFactory cannot be found by org.eclipse.jdt.ui_3.16.0.v20181019-1929

This means, you are using JDT sources *but* JDT UI is from platform. I guess if you check out JDT UI in the workspace, it will start without issues.
Comment 2 Lars Vogel CLA 2018-10-25 15:28:41 EDT
(In reply to Andrey Loskutov from comment #1)
> Just to make sure: can you start same IDE with *any other* JDK?

Just tested with Java 8 and I received the same errors.

> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.jdt.core.IBufferFactory cannot be found by
> org.eclipse.jdt.ui_3.16.0.v20181019-1929
> 
> This means, you are using JDT sources *but* JDT UI is from platform. I guess
> if you check out JDT UI in the workspace, it will start without issues.

I just tested this and imported org.eclipse.jdt.ui into my workspace. Now it starts without errors. 

Why?
Comment 3 Lars Vogel CLA 2018-10-25 15:30:52 EDT
> I just tested this and imported org.eclipse.jdt.ui into my workspace. Now it
> starts without errors. 

No it does not work, I only clean the runtime workspace. After importing a Java project I see the same errors. For example:


!ENTRY org.eclipse.core.resources 4 2 2018-10-25 21:29:41.988
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/util/ManifestAnalyzer
	at org.eclipse.jdt.internal.core.ClasspathEntry.getCalledFileNames(ClasspathEntry.java:1061)
	at org.eclipse.jdt.internal.core.ClasspathEntry.resolvedChainedLibraries(ClasspathEntry.java:981)
	at org.eclipse.jdt.internal.core.ClasspathEntry.resolvedChainedLibraries(ClasspathEntry.java:968)
	at org.eclipse.jdt.internal.core.JavaModelManager.getNonChainingJarsCache(JavaModelManager.java:3588)
	at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathListCache(JavaModelManager.java:3599)
	at org.eclipse.jdt.internal.core.JavaModelManager.saveClasspathListCache(JavaModelManager.java:4434)
	at org.eclipse.jdt.internal.core.JavaModelManager.saving(JavaModelManager.java:4703)
	at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:384)
	at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:201)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:204)
	at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1169)
	at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2338)
	at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.lambda$1(IDEWorkbenchAdvisor.java:521)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.util.ManifestAnalyzer cannot be found by org.eclipse.jdt.core_3.16.0.qualifier
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 15 more
Comment 4 Lars Vogel CLA 2018-10-25 15:35:24 EDT
Andrey, can you reproduce?
Comment 5 Andrey Loskutov CLA 2018-10-25 15:36:22 EDT
So you have now jdt core and ui in the same workspace. Please make sure they are both looking on latest commits and are refreshed. Clean the workspace. Make sure no compile errors is shown. Create new launch config and check if this will work. If not, please create new workspace, import both projects and try again.
Comment 6 Lars Vogel CLA 2018-10-25 15:41:02 EDT
(In reply to Andrey Loskutov from comment #5)
> So you have now jdt core and ui in the same workspace. Please make sure they
> are both looking on latest commits and are refreshed. Clean the workspace.
> Make sure no compile errors is shown. Create new launch config and check if
> this will work. If not, please create new workspace, import both projects
> and try again.

Did that already. I see still the exceptions? My case works for you?
Comment 7 Lars Vogel CLA 2018-10-25 15:41:30 EDT
> Did that already. I see still the exceptions? My case works for you?

Typo: I see still the exceptions!
Comment 8 Andrey Loskutov CLA 2018-10-25 15:45:19 EDT
(In reply to Lars Vogel from comment #6)
> (In reply to Andrey Loskutov from comment #5)
> > So you have now jdt core and ui in the same workspace. Please make sure they
> > are both looking on latest commits and are refreshed. Clean the workspace.
> > Make sure no compile errors is shown. Create new launch config and check if
> > this will work. If not, please create new workspace, import both projects
> > and try again.
> 
> Did that already. I see still the exceptions? My case works for you?

Not really, no. From other bug I know you are using pretty old EGit version, but I'm on latest nightly. Since EGit appears in the log, please either update or disable EGit from the launch config, and re-check.
Comment 9 Lars Vogel CLA 2018-10-25 15:51:23 EDT
(
> Not really, no. From other bug I know you are using pretty old EGit version,
> but I'm on latest nightly. Since EGit appears in the log, please either
> update or disable EGit from the launch config, and re-check

Already done for this bug no EGit exception is involved.
Comment 10 Andrey Loskutov CLA 2018-10-25 15:52:16 EDT
(In reply to Lars Vogel from comment #9)
> (
> > Not really, no. From other bug I know you are using pretty old EGit version,
> > but I'm on latest nightly. Since EGit appears in the log, please either
> > update or disable EGit from the launch config, and re-check
> 
> Already done for this bug no EGit exception is involved.

In the posted stack EGit Activator is loading JDT UI.
Comment 11 Lars Vogel CLA 2018-10-25 16:04:07 EDT
(In reply to Andrey Loskutov from comment #10)
> (In reply to Lars Vogel from comment #9)
> > (
> > > Not really, no. From other bug I know you are using pretty old EGit version,
> > > but I'm on latest nightly. Since EGit appears in the log, please either
> > > update or disable EGit from the launch config, and re-check
> > 
> > Already done for this bug no EGit exception is involved.
> 
> In the posted stack EGit Activator is loading JDT UI.

Jdt exceptions remained the same, even after my EGit update. I can post tomorrow an updated stack trace but the exceptions are the same minus the EGit one.
Comment 12 Andrey Loskutov CLA 2018-10-25 16:04:42 EDT
Please attach the full error log.
Comment 13 Lars Vogel CLA 2018-10-26 04:46:13 EDT
Created attachment 276384 [details]
Full log

Full exception trace attached.
Comment 14 Stephan Herrmann CLA 2018-10-27 08:19:56 EDT
(In reply to Lars Vogel from comment #13)
> Created attachment 276384 [details]
> Full log
> 
> Full exception trace attached.

This section

	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.eclipse.egit.ui.Activator.hasJavaPlugin(Activator.java:1137)
	at org.eclipse.egit.ui.Activator.registerTemplateVariableResolvers(Activator.java:351)
	at org.eclipse.egit.ui.Activator.start(Activator.java:343)

implies that all this is still triggered during EGit start-up.

I don't know which class loader is used during Class.forName(). Maybe it is not capable of loading JDT/Core classes?

Can you try launching the runtime workbench *without* EGit?
Comment 15 Matthias Sohn CLA 2018-10-28 17:02:45 EDT
can you retry with the very latest egit nightly, now that Andrey fixed bug 540487
Comment 16 Lars Vogel CLA 2018-10-29 12:00:50 EDT
Created attachment 276414 [details]
Full error log without EGit present in runtime Eclipse

If I remove EGit from the runtime Eclipse, the errors remain. See new attachment for the recent log file.
Comment 17 Stephan Herrmann CLA 2018-10-30 08:12:30 EDT
> Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.IBufferFactory cannot be found by org.eclipse.jdt.ui_3.16.0.v20181019-1929

This implies you are running jdt.ui from the host, not from your workspace. So maybe you are launching an inconsistent mix of host & workspace plugins?

Please attach the target platform used in your workspace plus the launch configuration.

OTOH, org.eclipse.jdt.core.IBufferFactory has not been touched in ages. If you are using jdt.core from your workspace, could you just check if IBufferFactory.class exists below bin/ and is a valid class file?
Comment 18 Stephan Herrmann CLA 2019-09-24 18:39:08 EDT
We've been going in circles here. Attachment 276414 [details] from comment 16 again contains the exception that clearly indicates an unhealthy mix of source & binary plugins. Could be a mistake in the launch configuration / target platform, but not in JDT.

Since this very use case works for every JDT committer / contributor on a daily basis, I'm closing this as worksforme.