Sunday, 25 August 2013

Java Command Line Compilation Not Updating

Java Command Line Compilation Not Updating

I am using eclipse for writing some code, but using the command prompt to
compile it because I'm redirecting a file to the input, so initially I
compiled the java file and everything went fine, but I then made some
changes and when I recompiled the java file it just showed the previous
results (not the new results I should have received after compiling), why
is this happening? Any help would be greatly appreciated. Please note that
I have tried restarting and deleting the files (both .class and .java) and
copying the same code to a new java file with the same name, this did not
help, but creating a new file with a new name did work....but creating a
new file everytime I want to run/test a program is obviously not a
solution...

No comments:

Post a Comment