简体   繁体   English

为什么我打开 Eclipse 或 NEtbeans 时 javaw.exe 不启动?

[英]Why doesn't the javaw.exe start when i open Eclipse or NEtbeans?

When i open Eclipse or Netbeans the Java virtual machine process javaw i can't see the javaw process in the processes list.当我打开 Eclipse 或 Netbeans Java 虚拟机进程 javaw 时,我在进程列表中看不到 javaw 进程。 Shouldn't i be able to?我不应该可以吗?

It is probably wrapped by some other process, which creates the JVM programmatically.它可能由其他一些进程包装,以编程方式创建 JVM。 You can do this for your own application with Launch4J .您可以使用Launch4J为您自己的应用程序执行此操作。

I can't speak for Netbeans, but Eclipse is started by eclipse.exe, which I can find easily in my Windows XP processes list in Task Manager. I can't speak for Netbeans, but Eclipse is started by eclipse.exe, which I can find easily in my Windows XP processes list in Task Manager.

Netbeans and eclipse are started by Windows Launcher applications that are written possibly in C/C++ - they are not direct Java calls. Netbeans 和 eclipse 由 Windows 启动器应用程序启动,这些应用程序可能是用 C/C++ 编写的——它们不是直接的 ZD5213877880E5EA221 调用。

Eclipse doesn't run in a virtual machine and doesn't start the virtual machine until you run your code. Eclipse 不会在虚拟机中运行,并且在您运行代码之前不会启动虚拟机。 I think that when you run multiple instances of your code it runs them in separate virtual machines, so you should only see a java or javaw process when your code is running.认为,当您运行代码的多个实例时,它会在单独的虚拟机中运行它们,因此当您的代码运行时,您应该只看到 java 或 javaw 进程。

Try running code containing while(true){} and see if you can see the process then.尝试运行包含while(true){}的代码,然后看看您是否可以看到该过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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