I recently installed/updated eclipse environment. When I try to compile the code I'm getting the error as:
我最近安装/更新了eclipse环境。当我试图编译代码时,我得到的错误是:
Unhandled event loop exception
未处理的异常事件循环
and says the error is in the org.eclipse.ui
plugin-in.
说错误在org.eclipse中。ui插件。
Can any one help me on this?
有人能帮我一下吗?
7 个解决方案
#1
5
Ok please follow the following steps:
好的,请按照以下步骤:
- First close your eclipse.
- 首先关闭您的eclipse。
- Go to your Eclipse Folder
- 转到Eclipse文件夹
- You will find the "Features" & "Plugins" folders in it.
- 您将在其中找到“特性”和“插件”文件夹。
- Open the "Features" folder and search for the "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
- 打开“Features”文件夹并搜索“org.eclipse”。ui“文件夹或.jar文件。如果找到,然后剪切和粘贴在桌面。
- Open the "Plugins" Folder and search for the "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
- 打开“插件”文件夹并搜索“org.eclipse”。ui“文件夹或.jar文件。如果找到,然后剪切和粘贴在桌面。
Now start your eclipse & try to compile.
现在启动eclipse并尝试编译。
It's possible that while updating it has downloaded the wrong updates.
可能在更新时下载了错误的更新。
#2
2
Finally after spending 2 hours trying to fix Eclipse, I just re-installed Eclipse and everything worked in the following 15 minutes.
最后,在花了两个小时试图修复Eclipse之后,我重新安装了Eclipse,在接下来的15分钟里,一切都运行正常。
#3
1
no need to worry.. if you running android application.. give eclipse some time... restart your computer after some times open eclipse clean all projects.. now try.. it working perfectly now.. :D
不用担心. .如果你运行android应用程序。给eclipse一些时间……在打开eclipse清理所有项目之后重新启动计算机。现在试试. .现在工作完美. .:D
#4
1
Cleaning all projects worked for me!
清理所有项目都对我有用!
#5
1
I also had "Unhanded event loop exception" in Eclipse neon.3 on Linux Mint, and there were other problems such as the perspective button bar either not showing or else throwing an error when you attempted to configure it.
我还在Eclipse neon中出现了“unhand事件循环异常”。在Linux Mint上,还有其他的问题,比如透视图按钮栏没有显示或者当您试图配置它时抛出错误。
I found the solution in comment #7 of an Eclipse bug discussion.
我在一个Eclipse bug讨论的注释#7中找到了解决方案。
The solution is to start eclipse after first executing these commands:
解决方案是在第一次执行这些命令之后启动eclipse:
export SWT_WEBKIT2=1
export SWT_GTK3=0
#6
0
The solution here was not working for me but after digging through the internet it became clear that some other software is messing up eclipse.
这里的解决方案并不适合我,但是在internet上挖掘之后,很明显其他一些软件正在破坏eclipse。
In my case it was the hydra vision in the catalyst control center. As I can see any application that messing with window handling will or can cause this error, based on the variety of setups and background from other people who experienced this problem.
在我的例子中,是在催化剂控制中心的九头蛇视觉。正如我所看到的任何应用程序,如果破坏窗口处理,就会或可能导致这个错误,这是基于其他经历过这个问题的人的不同设置和背景。
One of the best ways to determine which application is causing the problem (if it's an applicaion) is:
确定哪个应用程序导致问题(如果是应用程序)的最佳方法之一是:
- open the task manager
- 打开任务管理器
- start killing processes (start with unknown or new or any video related driver).
- 开始杀死进程(从未知的或新的或任何视频相关的驱动程序开始)。
- After each process kill check eclipse (restart it each time, just in case)
- 在每个进程结束后检查eclipse(每次重新启动它,以防万一)
and after killing hydra vision the error did not pop again (no restart was needed but who knows how other application works).
在杀死hydra vision之后,错误没有再次出现(不需要重新启动,但是谁知道其他应用程序是如何工作的)。
Hope this will help others to not spend a day on this annoying problem.
希望这能帮助别人不要在这个烦人的问题上浪费一天的时间。
Best for all
最好的所有
#7
0
In conjunction to cleaning all of the projects as suggested by Michael Martin, I also appended this line in the eclipse.ini:
为了配合Michael Martin建议的所有项目,我还在eclipse中添加了这一行。
-XX:+UseConcMarkSweepGC
- xx:+ UseConcMarkSweepGC
Per this documentation.
每本文档。
#1
5
Ok please follow the following steps:
好的,请按照以下步骤:
- First close your eclipse.
- 首先关闭您的eclipse。
- Go to your Eclipse Folder
- 转到Eclipse文件夹
- You will find the "Features" & "Plugins" folders in it.
- 您将在其中找到“特性”和“插件”文件夹。
- Open the "Features" folder and search for the "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
- 打开“Features”文件夹并搜索“org.eclipse”。ui“文件夹或.jar文件。如果找到,然后剪切和粘贴在桌面。
- Open the "Plugins" Folder and search for the "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
- 打开“插件”文件夹并搜索“org.eclipse”。ui“文件夹或.jar文件。如果找到,然后剪切和粘贴在桌面。
Now start your eclipse & try to compile.
现在启动eclipse并尝试编译。
It's possible that while updating it has downloaded the wrong updates.
可能在更新时下载了错误的更新。
#2
2
Finally after spending 2 hours trying to fix Eclipse, I just re-installed Eclipse and everything worked in the following 15 minutes.
最后,在花了两个小时试图修复Eclipse之后,我重新安装了Eclipse,在接下来的15分钟里,一切都运行正常。
#3
1
no need to worry.. if you running android application.. give eclipse some time... restart your computer after some times open eclipse clean all projects.. now try.. it working perfectly now.. :D
不用担心. .如果你运行android应用程序。给eclipse一些时间……在打开eclipse清理所有项目之后重新启动计算机。现在试试. .现在工作完美. .:D
#4
1
Cleaning all projects worked for me!
清理所有项目都对我有用!
#5
1
I also had "Unhanded event loop exception" in Eclipse neon.3 on Linux Mint, and there were other problems such as the perspective button bar either not showing or else throwing an error when you attempted to configure it.
我还在Eclipse neon中出现了“unhand事件循环异常”。在Linux Mint上,还有其他的问题,比如透视图按钮栏没有显示或者当您试图配置它时抛出错误。
I found the solution in comment #7 of an Eclipse bug discussion.
我在一个Eclipse bug讨论的注释#7中找到了解决方案。
The solution is to start eclipse after first executing these commands:
解决方案是在第一次执行这些命令之后启动eclipse:
export SWT_WEBKIT2=1
export SWT_GTK3=0
#6
0
The solution here was not working for me but after digging through the internet it became clear that some other software is messing up eclipse.
这里的解决方案并不适合我,但是在internet上挖掘之后,很明显其他一些软件正在破坏eclipse。
In my case it was the hydra vision in the catalyst control center. As I can see any application that messing with window handling will or can cause this error, based on the variety of setups and background from other people who experienced this problem.
在我的例子中,是在催化剂控制中心的九头蛇视觉。正如我所看到的任何应用程序,如果破坏窗口处理,就会或可能导致这个错误,这是基于其他经历过这个问题的人的不同设置和背景。
One of the best ways to determine which application is causing the problem (if it's an applicaion) is:
确定哪个应用程序导致问题(如果是应用程序)的最佳方法之一是:
- open the task manager
- 打开任务管理器
- start killing processes (start with unknown or new or any video related driver).
- 开始杀死进程(从未知的或新的或任何视频相关的驱动程序开始)。
- After each process kill check eclipse (restart it each time, just in case)
- 在每个进程结束后检查eclipse(每次重新启动它,以防万一)
and after killing hydra vision the error did not pop again (no restart was needed but who knows how other application works).
在杀死hydra vision之后,错误没有再次出现(不需要重新启动,但是谁知道其他应用程序是如何工作的)。
Hope this will help others to not spend a day on this annoying problem.
希望这能帮助别人不要在这个烦人的问题上浪费一天的时间。
Best for all
最好的所有
#7
0
In conjunction to cleaning all of the projects as suggested by Michael Martin, I also appended this line in the eclipse.ini:
为了配合Michael Martin建议的所有项目,我还在eclipse中添加了这一行。
-XX:+UseConcMarkSweepGC
- xx:+ UseConcMarkSweepGC
Per this documentation.
每本文档。