I need to create an executable as a result of a Makefile. Something as simple as if the user types abc, followed by the required input, in the command line the program executes. The code was written in Java. My Makefile runs just fine but I am not sure of how to create that executable. The name of the main method is Main.java just in case is necessary
The full execution would be something like:
abc xxxx
Where xxxx is the user's input. I am getting NullPointers when reading the input. I have tried using Scanner
, BufferedReader
, and System.console().system()
and keep getting the same error.
Any advice on reading the input?
Thanks