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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -