I would recommend the use of an IDE like Netbeans of Eclipse that will help you accomplish those tasks very easily. Other than that you could look into scripting this yourself (compile.bat file or something similar) or even better, making use of ant.
To shorten or simplify the javac command, you may specify one or more files that themselves contain one filename per line. On the command line, use the '@' character with the filename to specify it as a file list. When javac encounters an argument beginning with the character `@', it operates on the filenames in that file as if they had been on the command line. This enables you to overcome the command-line length limitation of Windows.
For example, you can list all of the source file names in a file named sourcefiles. This file might look like:
You could then run the compiler with:
C:> javac @sourcefiles
To me if you aren't willing to use an IDE then this seems like the best option.......list your files in one place and then just run command once (if i understand this correctly).
SCJA 6 (Studying for SCJP 6)
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database