سؤال

I am using Eclipse Helios for Java. Everything was working fine until recently. The problem is the console output is not updating whenever I edit the class that I am running.

E.g. If this was my class

public class mainExercise {

    public static void main(String[] args){
        System.out.println("show text");
    }

}

If it's the first time I open eclipse, then it will print out in the console (show text). However, if I try to edit it by let's say changing "show text" to "show text edited" and run it, the console still prints out (show text) which should be (show text edited) since I have changed it. I am still new to eclipse so I do not know what happened. Detailed explanation would be very helpful as to what have caused this and how I could fix it.

Thanks

هل كانت مفيدة؟

المحلول

You need to make sure that you are saving your changes before running. If you are, maybe you could try and do a rebuild of your source.

نصائح أخرى

Try to clean the project and then rebuild it .

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top