Eclipse 32 bits running on 64 bits JVM

二次信任 提交于 2020-01-02 02:24:06

问题


After many investigations I can't find a clear answer to the following question: Can Eclipse 32 bits version runs on a 64 bits JVM (of course on a 64 bits windows) ?

I guess the answer should be "NO" but I never worked with 64 bits systems and will be interested to "learn more" of how it work.

Thanks in advance,

Manu


回答1:


No, that's not possible, because Eclipse's SWT GUI toolkit depends on native libraries (which is the reason there are separate 32 and 64bit version of eclipse in the first place), and you cannot call 32bit native libraries from a 64bit JVM (or, in general, you cannot mix 64bit and 32bit code within the same OS process).




回答2:


You don't need eclipse to be running as 64-bit unless you intend to use well over 1 GB for the IDE. You can use eclipse to develop 64-bit applications by configuring it to use a 64-bit JVM when running your application.

Note: Java switches between 32-bit and 64-bit transparently (not as simple for native libraries but this can be done also) This means that developing for a 64-bit application looks and smells exactly the same as a 32-bit application. All you get is the warm inner feeling knowing that you are using 64-bit machine code and a bit more memory. Note: using CompressedOops reduces the memory overhead at the cost of some CPU overhead.

If you need to use more than a few GB of memory, that is when 64-bit make a difference, but your code will be exactly the same and no re-compile is required.




回答3:



I have been using a 32 bit version on 64 version for quite some time and have not faced any problem till now.
In most of the cases running a 32 bit version on 64 bit version should not be a problem but the other way would be a problem.

BR, Keshav




回答4:


Also, running in 64 bit will add an unnecessary overhead of 5-8%. Right now, 64 bit JVM should only be used for server programs needing large chunck of working memory.



来源:https://stackoverflow.com/questions/3785530/eclipse-32-bits-running-on-64-bits-jvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!