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

I know the use of java.exe and javaw.exe in the command console, but how are they used in Eclipse?

+4
source share
4 answers

Starting Eclipse uses javaw to start Eclipse. You can see the settings in the eclipse.ini file in your installation. This makes it easy to identify Eclipse in the list of processes in the task manager, and not see another Java process.

When you run / debug Java programs inside Eclipse, by default Java is used to run another jvm, but I believe that you can configure it to use javaw if necessary. Some launchers use javaw by default, I think Tomcat launcher (in WTP) is one of them.

+6
source

Could you explain a little what you are trying to do?

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

0
source

Eclipse should call java.exe javaw.exe when you click "Run as -> Java application" You can also choose which exe to use in run settings

0
source

AFAIK, Eclipse uses javaw.exe to run; This is a java process that does not use the CMD console window.

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

0
source

All Articles