3 ms·
Java allows you to put all your source files in one directory and javac *.java will happily compile them. Package-directory structure applies only for compiled
by levosmetalo 12y ago
Java allows you to put all your source files in one directory and javac *.java will happily compile them. Package-directory structure applies only for compiled classes and internal content of a jar file. For Java sources, that is just a convention.
But of COURSE, it is so modern to blame Java for everything these days.
- taf2 12y agoBlaming java is nothing new.
- MichaelGG 12y agoI had no idea. Why do so many projects setup these crazy directory trees for source then?
- levosmetalo 12y agoBecause it allows you to have your User.java class in both com.comp.ldap and com.comp.db packages.