简体   繁体   中英

How java.exe and javaw.exe are used in Eclipse?

我知道在命令控制台中使用java.exejavaw.exe ,但它们在Eclipse中是如何使用的?

The Eclipse launcher uses javaw internally to launch Eclipse. You can see the settings in eclipse.ini file in your installation. This lets you easily identify Eclipse in the list of processes in the task manager instead of seeing another Java process.

When you Run/Debug Java programs inside Eclipse, it defaults to using Java to launch another jvm, but I believe you can set it to use javaw if need. Some launchers use javaw by default, I think the Tomcat launcher (in WTP) is one of them.

Could you please explain a bit what you are trying to do?

If you want to launch a program, using "Run" and "Run as" will do the trick. You can also configure it to use command-line options, environment variables, etc

当您单击Run As - > Java Application时,Eclipse应该调用java.exe javaw.exe您还可以在运行设置中选择要使用的exe

AFAIK, Eclipse uses javaw.exe to run; this is the java process that doesn't use a CMD console window.

Java.exe is sometimes launched by Eclipse, to run projects or servers from within the IDE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM