2

When I run a simple Hello-World application using eclipse does not print anything on the console. I have installed Eclipse Indigo using apt-get on Ubuntu. Here is the trivial program I am trying to run:

public class testJava {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub


        System.out.println("Hello Java!!!");
    }

}

When I run it as Java application it just shows me termination messages on console

Strangely if I run Eclipse in Super user mode (sudo Eclipse) I can see the Hello Java message printed on console. Can anyone explain me the reason for this anomaly

4

0 回答 0