What is the preferred way to do this?
Campbell Ritchie wrote:Good idea which will allow you to compile multiple classes simultaneously, presumably.
Carey Brown wrote:I usually create a Windows batch file (.bat, .cmd) . . . On *nix systems I create shell scripts. . . .
Would you show us an example of such a file, please.
java -classpath c:\bin\app_file\libs\csbutils.jar;c:\bin\app_file\filefind.jar FileFind %*
That means you stop the command line echoing its instructions, and execute the java command to run the main method in the FindFile class using scbutils and findfile .jar files in the classpath.
I found that %* means all the command line arguments
That Last Link wrote:does %* in batch file mean all command line arguments?
. . .
Yes. According to the official Microsoft documentation:
The %* batch parameter is a wildcard reference to all the arguments, not including %0, that are passed to the batch file.