I have a java code i need to study on compiler construction. This code requires a text file for its execution and this text file is called inside the Makefile of the program and also this makefile automatically executes a compiled version of the code. I tried executing it but keep getting "javac not found error". Please how do i execute this makefile?. Attached below is a copy of the makefile and the error i get when i run "make" from the Netbeans7.1 terminal.
//ERROR MESSAGE GOTTEN
Makefile:4: recipe for target `compile' failed
/bin/sh: javac: command not found
make: *** [compile] Error 127
MAKE FAILED (exit value 2, total time: 660ms)
It is not entirely clear to me how the error message relate but ...
Find the Makefile in the 'Files' tree view (left hand side) (the Makefile should have an icon which looks like the standard document icon but overlaid with a hammer) and right mouse click on the Makefile. You should then get a context menu which will allow you to execute the different make file targets. You may have to install the C++ plugin for this to work; it is literally years since I use Netbeans without this plugin and I can't remember whether or not it is needed for this to work.
P.S. Netbeans 7.1 is now pretty old and I would suggest you upgrade to 7.4.