2

Introduction

One of the comments to this question is about using GnuWin's file command in order to check whether a program is using java or not. However GnuWin's file command indicates the following:

C:\Windows\system32>file "C:\Program Files\Eclipse Foundation\eclipse\eclipse.exe"
C:\Program Files\Eclipse Foundation\eclipse\eclipse.exe; PE32+ executable for MS
 Windows (GUI) Mono/.Net assembly

C:\Windows\system32>

while java is required in order to run programs, e.g. Eclipse, ApacheDS, Apache Directory Studio and Tomcat.

The discussion regarding this question resulted in a suggestion to ask a question at StackOverflow regarding the relation between .NET based programs and Java processes.

Question

Why does GnuWin's File Command indicate that certain programs are .Net based, while these require Java in order to run?

4

1 回答 1

1

Eclipse.exe 不是一个 java 程序:它实际上是一个本地 win32 可执行文件,它仅用于使用适当的命令行参数和包含实际 Eclipse java 可执行文件的 JAR 文件的路径来定位和启动 JVM。

参见例如http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Flauncher.html以获得完整的细节。

于 2014-06-15T13:43:05.917 回答