Compile multiple Java classes in cmd?

Asked

Viewed 1,912 times

4

How to compile multiple files .class in java by cmd? I tried and he informs that it was not possible to locate the main.

  • Post the command you used.

  • Using java or javac to compile?

1 answer

6

You can use these two commands:

javac *.java

or

javac arquivo1.java arquivo2.java main.java

*They must be in the same folder.

Similar question in Soen Link

Browser other questions tagged

You are not signed in. Login or sign up in order to post.