Quote:
Originally Posted by alman9898
if I navigate to the folder where this file is located, it will compile.
.
|
Yes it is the right way of compiling java program. "javac" command will try to find the file in the same directory where you execute the command.
Quote:
Originally Posted by alman9898
However, this is not a satisfactory solution since I intend on compiling JUnit tests directly from the command line as well...
.
|
And you can specify classpath option when you run the program.