java.exe 和javaw.exe 有什么区别

java.exe 和javaw.exe 有什么区别

1、java.exe: 
运行java程序 
2、javac.exe: 
编译的,生成.class文件 
3、javaw.exe: 
跟java命令相对的,运行java命令时,会出现并保持一个console窗口, 
程序中的信息可以通过System.out在console内输出,而运行javaw, 
开始时会出现console,当主程序调用之后,console就会消失; 
javaw 大多用来运行GUI程序 

百度搜的

 

java.exe is the command where it waits for application to complete untill it takes the next command. javaw.exe is the command which will not wait for the application to complete. you can go ahead with another commands.


java.exe is the console app while javaw.exe is windows app (console-less). You can't have Console with javaw.exe.


The difference is in the subsystem that each executable targets.
java.exe targets the CONSOLE subsystem.
javaw.exe targets the WINDOWS subsystem.

http://stackoverflow.com/questions/1997718/difference-between-java-exe-and-javaw-exe

 

你可能感兴趣的:(java)