question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Failure in Eclipse 2020-09 due to Removal of Deprecated Class (IEP-242)

See original GitHub issue

I just updated Eclipse to version 2020-09 and reinstalled the ESP-IDF plugin (version 1.2.2). When building a project (imported using “Import -> Existing IDF Project”), I get the following error right at the start and the build stops:

java.lang.NoClassDefFoundError: org/eclipse/cdt/utils/Platform
	at com.espressif.idf.core.build.IDFBuildConfiguration.findCommand(IDFBuildConfiguration.java:588)
	at org.eclipse.cdt.core.build.CBuildConfiguration.startBuildProcess(CBuildConfiguration.java:493)
	at com.espressif.idf.core.build.IDFBuildConfiguration.build(IDFBuildConfiguration.java:252)
	at org.eclipse.cdt.core.build.CBuilder.build(CBuilder.java:45)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:832)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:278)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:467)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:565)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2292)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:603)
	at org.eclipse.core.internal.resources.Project.build(Project.java:116)
	at org.eclipse.debug.core.model.LaunchConfigurationDelegate.lambda$0(LaunchConfigurationDelegate.java:406)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2292)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2312)
	at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildProjects(LaunchConfigurationDelegate.java:412)
	at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildForLaunch(LaunchConfigurationDelegate.java:122)
	at org.eclipse.launchbar.core.target.launch.LaunchConfigurationTargetedDelegate.superBuildForLaunch(LaunchConfigurationTargetedDelegate.java:61)
	at com.espressif.idf.launch.serial.internal.SerialFlashLaunchConfigDelegate.buildForLaunch(SerialFlashLaunchConfigDelegate.java:180)
	at org.eclipse.launchbar.ui.internal.commands.BuildActiveCommandHandler$1$1.run(BuildActiveCommandHandler.java:110)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.ClassNotFoundException: org.eclipse.cdt.utils.Platform cannot be found by com.espressif.idf.core_1.0.0.202008190353
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:516)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 26 more

A bit of googling lead me to this page that states:

Class org.eclipse.cdt.utils.Platform has been removed. Use org.eclipse.core.runtime.Platform instead.

Seems like that was a change from 2020-06 to 2020-09, and needs to be fixed in the ESP-IDF plugin in order to support Eclipse >= 2020-09. For the time being, I’m staying with 2020-06 where everything seems to work fine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:26

github_iconTop GitHub Comments

3reactions
llemttcommented, Oct 6, 2020

@kolipakakondal Eclipse 2020-09 now works, thanks!

3reactions
kolipakakondalcommented, Sep 29, 2020

Thanks for verifying. I"m able to reproduce. I’ll update once the fix ready. Please continue to use Eclipse 2020-06 (4.16)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to bind project to SQ due to use of deprecated (and ...
Today I installed the latest version of SonarLint from Eclipse marketplace. I noticed that nothing happens when I click “Bind this Eclipse ......
Read more >
Launching Eclipse 2020-09R error Version 11 or greater is ...
The only thing that worked to me is to remove Eclipse manually and reinstall it, because in the first initialization after the installation ......
Read more >
Successful build in Maven still showing errors in Eclipse
Updating maven project after importing it has fixed this issue for me: Right click on the project --> Maven --> Update project.
Read more >
How to fix Maven build issue in Eclipse? Perform ... - Crunchify
In this tutorial we will go over highly and widely used some tips and tricks which will fix most of the Maven and...
Read more >
Deprecated List (Eclipse Platform API Specification)
As of 3.1, encoding needs to be changed via properties dialog. This class is planned for removal after March 2021 (see bug#544309 for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found