简体   繁体   中英

Using a 32-bit JRE with a 64-bit Eclipse

I had setup 64-bit eclipse with 64-bit JRE. I wanted to try QuickTime for Java but I realized that it is not compatible with 64-bit JRE. One option I have is to change over to 32-bit eclipse as well as 32-bit JRE. But I was wondering if same 64-bit Eclipse can be used along with 32-bit JRE also.

Please suggest!

EDIT: I guess I was not clear enough in my question. I do understand that I will need to use a 64-bit JRE to run 64-bit Eclipse. I only wanted to make sure that I can have a project in 64-bit Eclipse which uses a 32-bit JRE for execution.

只需在配置中包含32位JRE作为额外的Java运行时,并将其用于您的项目。

You cannot use 64-bit Eclipse with 32-bit JRE, but you can have both 32-bit and 64-bit JREs installed on your system. If you find that one or the other Eclipse fails to start in this situation, it is likely finding the wrong JRE. To remedy the situation, add the following lines to the start of your eclipse.ini file:

-vm
[fullpath]\javaw.exe

First, you need create a 32bit jre environment in menu windows/preferences/java/installed jres. Then, you can create a java project and select 32bit jre environment for 32bit java program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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