Eclipse 2022-03 : java.lang.NoClassDefFoundError: org/eclipse/tm4e/ui/utils/ContentTypeHelper Error - eclipse

I am currently facing error in eclipse while opening yaml as well as xml files.
Error is java.lang.NoClassDefFoundError: org/eclipse/tm4e/ui/utils/ContentTypeHelper.
I installed Eclipse Docker Tooling 5.6.0.20220382138 extension for Dockerfile support via eclipse marketplace.
After installation, I have started seeing above error. So I uninstalled above plugin to see if that will be of any help but still even after uninstallation, error didn't disappear.
I referred this link & installed extension but it is of no help.
Platform : MacOS
Eclipse : 2022-03 (4.23.0)

For this specific issue, I end up re-installing eclipse from eclipse installer as I tried below mentioned things & it still didn't worked:
Installed https://download.eclipse.org/tm4e/releases/0.4.5/ .
Uninstalled above version & installed latest release of tm4e but no success.
Uninstalled tm4e completely which started giving me issues where I was unable to save any changes in java class files. Workspace got freeze after this.

Related

debugging python code using pydev fails in eclipse

I was able to debug python code using pydev in Eclipse before I received a new computer but now am encountering errors while in the debugger. There problems do not occur when running the from CLI (subprocess.run fails). The problem appears to be related to mylyn. I tried installing pydev from the eclipse marketplace and have even tried installing the latest version of mylyn (3.25.2). Below is the install summary:
enter image description here
I am running the following versions:
Eclipse 4.25
Java 1.8.0_341
python 3.10

Binary built with Eclipse CDT visible only inside the IDE but nowhere to be found outside,What Is Happening?

I am using latest Eclipse version with cmake4eclipse add-on on my Debian machine. I am a noob at using Eclipse and already there is a problem! The very strange problem is that after building a project the explorer tab of IDE shows the built binary but I can not actually find it using my usual file manager. When I try to run the binary from IDE, Eclipse complaints a nullpointer exception has occurred. What is happening here?

Upgrade from Eclipse Mars to Photon on Ubuntu cause problems

Hi I am wondering if anyone found some similar issues upgrading from ubuntu machine.
I upgraded from eclipse mars to eclipse photon and when I try to run my Tomcat 8 server I get the following error.
Plug-in "org.eclipse.jst.server.tomcat.core" was unable to instantiate class "org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate". org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate.allowAdvancedSourcel
I have tried updating all repo's to no success, I read some threads about WTP ServerTools so I tried upgrading to version 3.10 and this will not update for me either, any ideas would be grateful.
Or should I just do a reinstall to the version I had working, would properly save time in the long run
I'm having the same issue. I upgraded from within eclipse (Oxygen) by entering the new repository location.
Java 8 / Ubuntu 18.04
I then couldn't start tomcat with the above noted error.
I just ran apt update & apt dist-upgrade but it didn't pull down any relevant packages.
I then ran the 'Help | Check for Updates' option in eclipse and it installed some wtp tool updates. I then deleted the Server instance in eclipse and re-created it.
Tomcat now starts correctly.
Summary:
Run 'Help | Check for Updates' in eclipse and it looks like that will fix your problem.

javafx Eclipse Mars install

I have just installed eclipse Mars (4.5) and I have a problem with one old JavaFx project. Before installing Mars, I was using Luna and got no problem with my JavaFx projects, now I have the following problem with one project, all the javafx code are underlined with a similar error:
Access restriction: The type 'LineChart' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_45\lib\ext\jfxrt.jar')
I do not know what it means, I tried to refresh the project and reboot Eclipse but the errors do not disappear, I can run my application without any problem though. I have other JavaFx project but none got this error.
I am using the latest JDK 1.8 update 45.
I solved my problem by removing JavaFX SDK from the build path and adding it again. I don't understand why it did not work the first time.

Eclipse Luna crashes on new project in Ubuntu

I'm having some trouble getting Eclipse Luna to work. I downloaded the tar.gz from the eclipse site and I downloaded the tar.gz for the Java JDK. I extracted everything and Eclipse opens properly, but when I try to make a new project, it crashes on me. In the terminal I ran java -version and it tells me I have version 1.8.0_25 so I don't think I have an issue with java. Now, this happens if I try to make any kind of project. Eclipse opens the wizard for creating a new project of a particular type and then the whole application crashes. When I started doing this, I installed it under the KDE desktop. When Eclipse crashes, I get the message java: /build/buildd/gtk2-engines-oxygen-1.4.5/src/animations/oxygencomboboxdata.cpp:87‌​: void Oxygen::ComboBoxData::setButton(GtkWidget*): Assertion '!_button._widget' failed. So, I decided to install the xfce desktop to get around it, since oxygen is a KDE theme. I uninstalled eclipse and reinstalled it under xfce and I have the same behavior and the same errors. When I run eclipse from the command line, I get this exception on startup:
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Does anyone have any ideas on what else to try?
According to comment 20 in this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20
This seems to be a bug in GTK according to
https://bugs.launchpad.net/ubuntu/+source/gtk2-engines-oxygen/+bug/1242801
(there a similar problem for Meld was reported).
Another workaround mentioned there is for Oxygen, edit the normally already existing file
/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc and change
`GtkComboBox::appears-as-list = 1`
into
`GtkComboBox::appears-as-list = 0`
This workaround is working for me.
I have resolved this issue by installing package gtk2-engines-oxygen built for Ubuntu Vivid Vervet (version 1.4.6):
http://packages.ubuntu.com/vivid/gtk2-engines-oxygen