java.exe,javaw.exe和jvm.dll之间的区别 [英] Difference between java.exe, javaw.exe and jvm.dll
问题描述
使用java.exe,javaw.exe和jvm.dll运行应用程序(例如Eclipse)有什么区别?另外,它在性能方面有什么不同吗?
What is the difference in running an application (for example, Eclipse) with java.exe, javaw.exe and jvm.dll? Also, does it make any difference in terms of performance?
推荐答案
-
jvm.dll
是JVM的实际Windows实现(或更好,主要入口点)。 C或C ++应用程序可以使用此DLL来运行嵌入式Java运行时,这将允许应用程序直接与JVM连接,例如,如果他们想将Java用作GUI。jvm.dll
is the actual Windows implementation of the JVM (or better, the main entry point). C or C++ applications can use this DLL to run an embedded Java runtime, and that would allow the application to interface directly with the JVM, e.g. if they want to use Java for its GUI.java.exe
是DLL的包装器这样人们就可以在不需要自定义启动器应用程序的情况下实际运行Java类。它是一个Win32控制台应用程序,因此如果不从批处理文件运行exe,Windows将打开一个新的命令提示符窗口。java.exe
is a wrapper around the DLL so that people can actually run Java classes without the need for a custom launcher application. It is a Win32 Console application, so Windows will open a fresh Command Prompt window if the exe is not run from a batch file.javaw.exe
是一个包装器,如java.exe
,但它是一个Win32 GUI应用程序。 Windows不必打开命令提示符窗口,这正是您想要运行打开自己的窗口的GUI应用程序。javaw.exe
is a wrapper likejava.exe
, but it is a Win32 GUI application. Windows doesn't have to open a Command Prompt window, which is exactly what you want to run a GUI application which opens its own windows.编辑:除了流程创建和初始化的开销之外,这些不应该对性能产生任何影响。
These shouldn't make any difference in performance except for the overhead of process creation and initialization.
最重要的是:它应该'无所谓如果你担心这个问题,你可能真的想让Java继续运行而不是数百次启动它。
The most important thing: it should't matter; if you are worrying about this you might actually want to keep Java running instead of launching it hundreds of times.
这篇关于java.exe,javaw.exe和jvm.dll之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!