In response to Right-click -> Run As -> Java Application,
Eclipse occasionally pauses to search for all the main types in the workspace. Why is the necessary, since I just told it what type to run? Is there a way to suppress it? (In a workspace with many open projects it's very time-consuming.)
This is with Mars 4.5.2
thanks, Jon
Set up a run configuration and define which main type to run. This tells eclipse which main class to run when you run that particular config and it doesn't look for any other main type.
I found the same problem, Eclipsed stuck on
Searching for main types...
and specifically on
Locating Java matches...
I have not be able to solve the problem cleaning workspace or reinstalling (downloading) a new version of Eclipse. I am using:
Eclipse IDE for Java Developers
Version: 2019-03 (4.11.0)
Build id: 20190314-1200
Finally, the solution, I identificate the problem in a class that I wrote in a project, this problem occurs only when min a class I have the following import:
import java.util.stream.Stream;
Deleted that line the problem disappear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With