when i build hello world program on eclips they are showing this

when i build helloworld program on c on eclips this is shown on console:-

10:21:36 **** Build of configuration Debug for project sample **** make all Cannot run program "make": Unknown reason

Error: Program "make" not found in PATH PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

10:21:36 Build Failed. 1 errors, 0 warnings. (took 26ms)

i downloaded open jdk 11 when check java version it shown as

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

i have searched this problem on internet , but i didn't found any solution =======


C does not need openjdk. You need build-essential and make in this case. Simply type in the terminal sudo apt install build-essential make

I don't use eclipse so I don't know if you need to configure the makefile too.

  • thank you for your help , it is working
    – sahood
    Dec 6 '21 at 4:18

Before proceeding you have to install needed build tools by

sudo apt-get install build-essential

For C/C++ development in Eclipse you have to install correct addon. Visit HelpEclipse Marketplace and install Eclipse C/C++ CDT.

Eclipse CDT

Then restart Eclipse to create project from FileNewProject, C/C++, C Project, Hello World ANSI C Project.
Finally build it by Ctrl+B, run with Ctrl+F11.

  • it is working , from Eclips Marketplace i can able to update eclips too . and now the problem is solved , it was a great help
    – sahood
    Dec 6 '21 at 4:27
  • Great! So you can accept this my answer by using grey checkmark at the left of this answer.
    – N0rbert
    Dec 6 '21 at 7:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.