Shailesh Kumar
Shailesh Kumar

Reputation: 6947

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.

Upvotes: 16

Views: 32397

Answers (3)

Konstantin Komissarchik
Konstantin Komissarchik

Reputation: 29139

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

Upvotes: 11

Joy
Joy

Reputation: 21

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.

Upvotes: 2

nfechner
nfechner

Reputation: 17525

Just include the 32bit JRE as an additional Java runtime in the configuration and use it for your project.

Upvotes: 11

Related Questions