目录:target/classes/org/test/App.class
package org.test; /** * Hello world! * */
public class App { public static void main( String[] args ) { System.out.println("Hello World!"); System.out.println( "Hello World!" ); } }
在classes目录下,执行“java org.test.App”