关于eclipsec.exe
eclipse 3.3提供了eclipsec.exe,直接用控制台启动eclipse,将输出直接打到控制台.但是我通过eclipsec启动eclipse却没有获得相应的效果,打印信息没有出现在控制台上.具体情况如下:
我通过控制台启动eclipse,命令如下:
E:\dev\eclipse\eclipsec.exe -debug
控制台打印一些信息,如:
Start VM: C:\WINDOWS\system32\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar E:\dev\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-os win32
-ws win32
-arch x86
-showsplash
-launcher E:\dev\eclipse\eclipsec.exe
-name Eclipsec
--launcher.library E:\dev\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup E:\dev\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
...
然后我在eclipse中新建一个简单工程,新建一个简单类,在该类main方法中添加,System.out.println("hello world");和System.err.println("err world");结果eclipse工作区的控制台中都打印出了信息,但是在启动eclipse 的控制台中没有任何信息.
另外,我关闭eclipse后,eclipsec进程退出.但是我关闭eclipsec进程,eclipse却没有退出,仍然正常工作,
请问这是eclipsec.exe的的bug吗?还是我的理解有误?
***********************************************************
以下是相关资料
There is now a second launcher "eclipsec.exe" on Windows that behaves as expected for a console application. This allows piping the output from Eclipse, as well as better behavior in general for the standard -console, -consoleLog and -debug options.
The result is that on windows we are now shipping a second executable: eclipsec.exe. eclipse/eclipsec is analogous to javaw/java. Eclipsec.exe is linked as a console application so that the OS will allocate a console for us. This executable does not automatically add any arguments, so you still need to specify -console, -consoleLog, etc.
>>>>> If you are using 3.3, try the eclipsec.exe launcher instead. It is
>>>>> linked as a console application and works much better. Note that the
>>>>> export will not include this executable by default and you would need
>>>>> to set up a headless build, or include it manually. (It can be found
>>>>> in the root of the windows install, or in the
>>>>> org.eclipes.equinox.executable from the delta pack)