1.nh@57ubuntu:~/helloworld/src$ javac helloworld.java 2.nh@57ubuntu:~/helloworld/src$ sudo java helloworld 就可以得到相应的结果。