1.在notepad++写好程序命名hello.java
2.cmd运行
javac空格文件名(包含后缀名)是编译出hello.class文件,Java空格文件名是运行hello.class文件打印出"hello world!"。