View Single Post
Old 10-11-2010, 09:07 AM   PM User | #2
sujithpr
New Coder

 
Join Date: Aug 2009
Location: Cochin,India
Posts: 39
Thanks: 2
Thanked 1 Time in 1 Post
sujithpr is an unknown quantity at this point
Smile

Quote:
Originally Posted by alman9898 View Post
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 View Post
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.
sujithpr is offline   Reply With Quote