简体   繁体   English

64位Eclipse和JVM

[英]64-bit Eclipse and JVM

如何确定我在Linux机器上是否使用64位Eclipse和64位JVM?

要验证您使用的是64位JVM,请执行以下操作:

java -d64 -version

In a comment above you say that you're using a software package that requires "such constraints". 在上面的评论中,您说您使用的是需要“此类约束”的软件包。 I'm not exactly sure what you mean by that, but for Java programs, it doesn't matter if the underlying Java implementation is 32-bit or 64-bit (well, as long as it doesn't need a huge amount of memory, for example). 我不确定您的意思是什么,但是对于Java程序,底层Java实现是32位还是64位都没关系(只要它不需要大量的Java实现即可)。内存)。 A normal Java program should run the same, no matter if it runs on a 32-bit or 64-bit OS. 普通的Java程序无论在32位还是64位OS上运行,都应该运行相同的程序。

java -version should give you an indication if your Java runtime environment is 32-bit or 64-bit. java -version应该指示您Java运行时环境是32位还是64位。

Eclipse contains some native binaries (for the SWT libraries). Eclipse包含一些本地二进制文件(用于SWT库)。 Depending on if your Java runtime environment is 32-bit or 64-bit, you need a version of Eclipse with the corresponding native binaries. 根据您的Java运行时环境是32位还是64位,您需要具有相应本机二进制文件的Eclipse版本。 The Eclipse download page contains links for 32-bit and 64-bit Linux versions of Eclipse. Eclipse下载页面包含32位和64位Linux版本的Eclipse的链接。

Note: If your OS is 64-bit but your Java RE is 32-bit, you will still need the 32-bit Eclipse. 注意:如果您的操作系统是64位,而Java RE是32位,则仍将需要32位Eclipse。

Usually you can tell from your eclipse.sh or your eclipse.ini if you are using 32bit or 64bit version, as the involved plugins are quite different. 通常,您可以从eclipse.sh或eclipse.ini中判断出您使用的是32位还是64位版本,因为所涉及的插件完全不同。

As for the JVM, are you running Eclipse with something other than your default JVM? 至于JVM,您是否正在使用默认JVM以外的其他东西运行Eclipse? 'which java' usually tells you what you're using as your java executable. “哪个Java”通常会告诉您正在使用什么作为Java可执行文件。

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

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