Eclipse needs to see a main method in one of your project's source files in order to determine what kind of project it is so that it can offer the proper run options:

public static void main(String[] args)

Without that method signature (or with a malformed version of that method signature), the Run As menu item will not present any run options.

Answer from MarsAtomic on Stack Overflow
Discussions

java - Eclipse error, "The selection cannot be launched, and there are no recent launches" - Stack Overflow
I have just started Android programming so downloaded Eclipse and got started. Created my first project following tutorial from here: http://developer.android.com/training/basics/firstapp/creating- More on stackoverflow.com
🌐 stackoverflow.com
Eclipse IDE - Selection cannot be launched
I am struggling to program the 'LE_Hello_Sensor ' code into the evaluation board using the Eclipse IDE. The latest issue when I have built the code and then try to run it I get the error message 'The selection cannot be launched, and there are no recent launches'. More on community.infineon.com
🌐 community.infineon.com
6
June 16, 2023
svn - Eclipse Unable to Launch, the selection cannot be launched, and there are no recent launches - Stack Overflow
I am getting the above error when i try to launch a Project which i checked out from SVN Repository. When i make my own Java Project on eclipse with a main class everything works fine, but when i t... More on stackoverflow.com
🌐 stackoverflow.com
java - Eclipse problem : the selection can not be launched, and there are no recent launches - Stack Overflow
23 "Selection cannot be launched and there are no recent launches” when Eclipse for Android Project Dev More on stackoverflow.com
🌐 stackoverflow.com
🌐
Coderanch
coderanch.com › t › 617933 › ide › Eclipse-selection-launched-launches
Eclipse says This selection cannot be launched & there are no recent launches (IDEs and Version Control forum at Coderanch)
Hello, I'm trying to run a Java program (just a "Hello World" program) from the IDE Eclipse, and so far without success. When I press the "run" button, a box comes up that says "This selection cannot be launched & there are no recent launches" I'm clueless as to why it doesn't run & what that ...
🌐
Delft Stack
delftstack.com › "delft stack" › "howto" › "java howtos" › "how to fix eclipse error: the selection cannot be launched"
How to Fix Eclipse Error: The Selection Cannot Be Launched | Delft Stack
March 4, 2025 - The “The selection cannot be launched” error often appears when Eclipse cannot find a valid launch configuration for the selected project or file. This could be due to various reasons, including incorrect project setup, missing main methods, ...
Top answer
1 of 2
35

Eclipse can't work out what you want to run and since you've not run anything before, it can't try re-running that either.

Instead of clicking the green 'run' button, click the dropdown next to it and chose Run Configurations. On the Android tab, make sure it's set to your project. In the Target tab, set the tick box and options as appropriate to target your device. Then click Run. Keep an eye on your Console tab in Eclipse - that'll let you know what's going on. Once you've got your run configuration set, you can just hit the green 'run' button next time.

Sometimes getting everything to talk to your device can be problematic to begin with. Consider using an AVD (i.e. an emulator) as alternative, at least to begin with if you have problems. You can easily create one from the menu Window -> Android Virtual Device Manager within Eclipse.

To view the progress of your project being installed and started on your device, check the console. It's a panel within Eclipse with the tabs Problems/Javadoc/Declaration/Console/LogCat etc. It may be minimised - check the tray in the bottom right. Or just use Window/Show View/Console from the menu to make it come to the front. There are two consoles, Android and DDMS - there is a dropdown by its icon where you can switch.

2 of 2
1

Follow these steps to run your application on the device connected. 1. Change directories to the root of your Android project and execute: ant debug 2. Make sure the Android SDK platform-tools/ directory is included in your PATH environment variable, then execute: adb install bin/<*your app name*>-debug.apk On your device, locate <*your app name*> and open it.

Refer Running App

🌐
Infineon Developer Community
community.infineon.com › home › forums › wireless connectivity › airoc™ bluetooth › eclipse ide - selection cannot be launched
Eclipse IDE - Selection cannot be launched - AIROC™ Bluetooth - Infineon Developer Community
June 16, 2023 - I just want to clarified as you mentioned in PM that your issue is solved by reloading the MTB and you can find the correct launches. Good to know that. 🙂 ... Error copying link. PLease try again later. ... Thank you for visiting our community forum. 🙂 May you share your sample code / your code and error screen shot, so we can analyze further ? ... he latest issue when I have built the code and then try to run it I get the error message 'The selection cannot be launched, and there are no recent launches'.
🌐
University of Washington
courses.cs.washington.edu › courses › cse373 › 13wi › eclipse-tutorial › faq.shtml
Eclipse tutorials
A: Save the file into the project's folder, then go to Eclipse and right-click the icon for your project in the Package Explorer at left, and choose Refresh. You should now see your file in the project. ... A: Right-click the "Main" class in the Package Explorer at left, then choose Run As, ...
🌐
YouTube
youtube.com › armaan shaikh
How to resolve 'The selection cannot be launched' issue in Eclipse IDE - Run configuration setting - YouTube
This short video shows how one can resolve one of the most common problems encountered in Eclipse IDE while running Java codes.
Published: November 8, 2023
Views: 27K
Find elsewhere
🌐
YouTube
youtube.com › softtrick
Fix The Selection Cannot Be Launched and There are No Recent Launches Eclipse - Unable to Launch - YouTube
In This Video We Will See How to Fix The Selection Cannot Be Launched and There are No Recent Launches Eclipse Error or Unable to LaunchHere Are The Steps to...
Published: September 11, 2024
Views: 188
🌐
YouTube
youtube.com › watch
How to Fix 'The Selection Cannot Be Launched' Error in Eclipse 2025 (Fast & Easy Guide) - YouTube
Learn to resolve the "selection cannot be launched" error in Eclipse 2025 for running applications, testing code, or debugging—perfect for Java developers or...
Published: June 11, 2025
🌐
Quora
quora.com › When-I-try-to-run-my-project-by-clicking-the-green-Play-button-I-get-the-error-message-The-Selection-cannot-be-launched-and-there-are-no-recent-launches-What-should-I-do
When I try to run my project by clicking the green 'Play' button, I get the error message: 'The Selection cannot be launched, and there are no recent launches.' What should I do? - Quora
Answer (1 of 4): Jonathan already pointed you to Stack Overflow. That is a good source, especially when someone else has done the hard parat -- finding the right answer. That said, I usually see this error message only when I forgot to select the project itself. If you have the src folder highli...
🌐
YouTube
youtube.com › watch
The selection cannot be launched, and there are no recent launches | Eclipse IDE | Error Resolved - YouTube
🔧 Fix: "The selection cannot be launched, and there are no recent launches" in Eclipse IDEAre you facing the frustrating error in Eclipse IDE that says:"The...
Published: July 21, 2025
🌐
YouTube
youtube.com › quicklearn master
Eclipse Unable to Launch the Selection Cannot be Launched and There are no Recent Launches - YouTube
In This Video, I Will Show You Eclipse Unable to Launch the Selection Cannot be Launched and There are no Recent Launches
Published: September 5, 2024
Views: 154
🌐
YouTube
youtube.com › anand hooda classes
How to Fix Unable to launch Eclipse Error In Selenium
Unable to launch error in Eclipse or How to Fix "The selection cannot be launched and there are no recent launches" On EclipseMy Blog:http://seleniumconcept....
Published: February 4, 2017
Views: 82K
🌐
Stack Overflow
stackoverflow.com › questions › 59469556 › eclipse-problem-the-selection-can-not-be-launched-and-there-are-no-recent-lau
java - Eclipse problem : the selection can not be launched, and there are no recent launches - Stack Overflow
Find the folder for your project in that view, right-click on it, and look for the options "Run As..." and "Debug As...". Those are also menus, they will have options that depend on how your eclipse is configured.
🌐
Stack Overflow
stackoverflow.com › questions › 67050956 › why-does-the-selection-cannot-be-launched-and-there-are-no-recent-launches-not
java - Why does "the selection cannot be launched and there are no recent launches" notice come out in Eclipse? - Stack Overflow
Why does "the selection cannot be launched and there are no recent launches" notice is coming out in this case? module try { public class module-info { public static void main(String args[]) { System.out.println("hello"); } } } ... Is your file in a Source Folder in a Java Project, both of those terms in the sense that Eclipse's Java tools use them?
🌐
Super User
superuser.com › questions › 1418337 › why-is-eclipse-workspace-stuck-running-irrelevant-and-closed-java-code
Why is Eclipse Workspace stuck running irrelevant and closed Java code - Super User
March 27, 2019 - So you can run multiple programs from the same project, which can be useful. But you can only get rid of old ones through the dialog. ... I deleted all of my run configurations and now I get a error that says "Unable to Launch - The selection cannot be launched and there are no recent launches.
🌐
YouTube
youtube.com › swacha rahman
How to solve The selection cannot be run on any server problem in eclipse - YouTube
#eclipse #server #java #application #code #jsp #servlet
Published: March 10, 2023
Views: 7K