How do I convert multiple folders containing .java files to .class files having the same hierarchy? I mean just convert the .java files to .class in one go
1 Answer
javac /yourdir/*.java /yourdir2/*.java
just add the directories from which you want to compile.
1 Comment
Dario Dias
:For that I would have to type each and every folder and its sub-folders name which is not practical in case of multiple folders.@DavidPostill:I am not deleting the original .java files.Will make .class files of a copy of j.ava files
javac *.javafor compiling all files inside one folder !