So I've had this issue a bunch of times before. This is what worked for me:

Go to the Projects tab at the top, then Properties>C/C++ Build>Settings, click on Binary parsers tab and select "PE Windows Parser" and then click on Error Parsers tab and select "Microsoft Visual C error parser"

All that for good measure. Now, click apply and then right click on your project and "Build". Then click on the play button on top which would run your application and it should run.

1 more thing: When you add your test.cpp file: Right click on the project folder, New>Source File and then add test.cpp in the Source file edit box. That should do it!

Answer from Algorithmic on Stack Overflow
🌐
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, ...
🌐
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 - Another common reason for the “The selection cannot be launched” error is the absence of a main method in your Java class. The main method is the entry point of any Java application, and without it, Eclipse cannot execute your program.
🌐
YouTube
youtube.com › watch
the selection cannot be launched and there are no recent launches eclipse - YouTube
how to solve the selection cannot be launched and there are no recent launches eclipse.you can find word doc. Herehttp://www.mediafire.com/file/izpyeej41oo6q
Published: June 6, 2017
Find elsewhere
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'.
🌐
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
🌐
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 ...
🌐
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
🌐
YouTube
youtube.com › belkahla taieb
how to fix the selection cannot be launched, and there are no recent launches eclipse - YouTube
how to fix the selection cannot be launched, and there are no recent launches eclipse most of java developpers beginners face such a problem the "selection c...
Published: July 24, 2016
Views: 70K
🌐
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
🌐
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
🌐
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
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
🌐
Csdn
ask.csdn.net › questions › 8436955
Eclipse运行报错:The selection cannot be launched,and there are no recent launches_编程语言-CSDN问答
Jack LDZ的博客 1、Eclipse:The selection cannot be launched,and there are no recent launches 意思是说,该选项不能执行,并且最近没有执行记录。一般是由于main函数语法错误,导致找不到程序入口。检查主函数格式并更正即可。 main函数语法:public static void main(String[] args){ } 2、 ...
🌐
HatchJS
hatchjs.com › home › eclipse: the selection cannot be launched
Eclipse: The Selection Cannot Be Launched
January 5, 2024 - If the folder contains a `.project` file, then the file is a valid Eclipse project. The selected file is not located in a valid Eclipse workspace · The second possible cause of the error “The selection cannot be launched” is that the selected file is not located in a valid Eclipse workspace.