Click to See Complete Forum and Search --> : Java file not saving my changes ??


coolspyder
December 8th, 2005, 03:07 PM
Hi,

Recently today I have been noticing a problem when saving my Java files. The changes are not being reflected when I run the Java program.

For example in my Java file I had a line "System.out.println("MyData")" and changed it to "MyData2" and even remarking the line out with // but when I compile and then run "Java myFile" it hasn't saved.

What is strange is that I opened up the Java file in WordPad and the change HAS been made, but its not when I run the program.

Any ideas what might be causing this?!

Thanks.

cjard
December 9th, 2005, 11:14 AM
the file being compiled and run is not the one you are editing

find all occurrences of it on disk, and ensure you are editing the correct and only copy of the file