Вопрос

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