关于eclipsec.exe

tychol 2008-03-13 11:15:51
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)
...全文
1773 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
diershao 2008-09-24
  • 打赏
  • 举报
回复
[Quote=引用楼主 crazycowliu 的帖子:]
另外,我关闭eclipse后,eclipsec进程退出.但是我关闭eclipsec进程,eclipse却没有退出,仍然正常工作,
[/Quote]

在command line(cmd.exe)调用eclipsec,eclipsec加载eclipse GUI app,这时共启动了2个进程,一个是cmd.exe,另一个是eclipsec.exe(此进程中加载了2个service,一个console和一个GUI);当你关闭eclipse GUI app,那么eclipsec.exe也会随之关闭;而你所谓的“关闭eclipsec进程”,是关闭的哪一个?我猜测你是关闭的cmd.exe进程,那么eclipse GUI app当然不会退出,因为eclipse GUI app不是在cmd.exe进程中加载的,而是在eclipsec.exe进程中加载的。
胡矣 2008-04-08
  • 打赏
  • 举报
回复
难道是一个月之前的沙发?
我们在使用Eclipse的时候,经常是会使用别人的Jar包,然后,通常情况下,我们是不会得到他们的源码的,出发是个开源项目。但是有时候很多异常会从jar包里爆出来,我们没有源代码,就无法去查找具体原因,那么有没有一个工具可以让我们直接就像自己写的代码一样在Eclipse中按住Ctrl+鼠标,就直接查看源码呢? 1、把net.sf.jadclipse_3.3.0.jar拷到D:\eclipse\plugins 目录下. ( 这里是我的目录 写你自己的) 2、把JAD拷到Java安装路径下C:\Program Files\Java\jdk1.7.0_51\bin ( 这里是我的目录 写你自己的) 3、启动Eclipse ,Window->Preferences->Java->JadClipse,设置Path to decompiler 为你的JAD.exe路径;Directory for temporary files,这里设置临时文件路径,不用管. 备注:安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows——> Perference——>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。 对于存在源代码的类,它不会强行反编译,也就是说它还是会用eclipse自带的Class File Viewer查看class文件,手动设置Window->Preferences->Java->JadClipse,把Ignore existing source选中,就不会管有没有源码,都会反编译 http://blog.csdn.net/sushengmiyan

58,453

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧