The hello world code is not running

it is showing that “the selection cannot be launched, and there are no recent launches”

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)
Check if you have written this wrong

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

I have checked the code it is public static void main(String[] args) but it is still showing the same problem

please share your code after saving it on ide.codingblocks.com