build - how to compile multiple java source files in command line -
i new java command line building. in eclipse, need write source in sample project , builds automatically.
i know javac file1.java -----> file1.class if file1.java source file, can java file1 run it.
however, if have 2 source files, file1.java file2.java
how can build program?
thanks lot!
try following:
javac file1.java file2.java
Comments
Post a Comment