I am compiling my project written using eclipse using the command line as follows
javac file.java
And then to run:
java file (args here)
How would I run a clean build, or compilation? Whenever I recompile, the changes are not getting affected unless I delete all the .class
files and recompile. Please note that the the main file will call other classes too.
Thanks
You should compile all the Java files in your application to be sure, basically.
Options include:
On a Unix box, use something like:
assuming you don't have too many (or use
xargs
if necessary).If you're not using packages (and you really should be) you can just use: