找出运行 JVM Eclipse 的设备 [英] Find out what JVM Eclipse is running on

查看:32
本文介绍了找出运行 JVM Eclipse 的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试调整我的 Eclipse 安装并遇到了-vm"选项.SO 上的其他帖子提到始终使用可用的最新 JVM 很好,因为它们在性能方面不断提高,所以我可能会这样做.我想知道如果您不指定-vm"参数,您如何找出 JVM Eclipse 的运行环境.

I'm currently trying to tune my Eclipse installation and bumped into the "-vm" option. Other posts on SO mentioned that it's good to always use the latest JVM available because they keep getting better in terms of performance, so I'm likely to do that. I was wondering though how you could find out what JVM Eclipse runs on if you are not specifying the "-vm" parameter.

我在文档中发现了以下内容,但这并没有说明它将如何查找 JVM:

I found the following in the docs but that doesn't clarify how it will look for a JVM:

当传递给 Eclipse 可执行文件时,此选项用于定位用于运行 Eclipse 的 Java VM.它必须是相应 Java 可执行文件的完整文件系统路径.如果未指定,Eclipse 可执行文件将使用搜索算法来定位合适的 VM.在任何情况下,可执行文件都会使用 -vm 参数将路径传递到用于 Java Main 的实际 VM.Java Main 然后将此值存储在 eclipse.vm 中.

when passed to the Eclipse executable, this option is used to locate the Java VM to use to run Eclipse. It must be the full file system path to an appropriate Java executable. If not specified, the Eclipse executable uses a search algorithm to locate a suitable VM. In any event, the executable then passes the path to the actual VM used to Java Main using the -vm argument. Java Main then stores this value in eclipse.vm.

推荐答案

实际上,Windows->Preferences->Java->installed 并没有显示 Eclipse 在其下运行的那个,而只显示了它在其下运行的默认 JRE.

Actually, Windows->Preferences->Java->installed doesn't show you the one Eclipse runs under, but only the default JRE that it runs things under.

要查看正在运行的 Eclipse,请转到 Help->About Eclipse Platform->Configuration Details,然后查找属性 eclipse.vm.

To see the one Eclipse is runing under, go to Help->About Eclipse Platform->Configuration Details, and look for the property eclipse.vm.

例如:

eclipse.vm=C:Program FilesJavajre6inclientjvm.dll

这篇关于找出运行 JVM Eclipse 的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆