Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

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.

like image 501
Shailesh Kumar Avatar asked Mar 14 '11 19:03

Shailesh Kumar


People also ask

Can Java 32 and 64 bit coexist?

Yes, you can have both x64 bit and x32 bit Java installed. They won't create conflicts with with each other, as they're tied to the type of browser you're using. To know more information, refer to this article.

Which JRE should I use Eclipse?

Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries. Regardless of your operating system, you will need to install some Java virtual machine (JVM).

Do I need both 32 and 64 bit Java?

You need a copy of Java that matches the C code in the application. If you have both 32 and 64 bit applications that use Java you need both.

Should I download Eclipse 32 bit or 64 bit?

It is critical that Java, Python, and Eclipse are either all 32 Bit or are all 64 Bit (and only if your Machine/OS supports 64 Bit): I think it easiest to use 32 Bit for everything. Click the 32-Bit (after Windows) to the right of the Eclipse IDE for Eclipse Committers.


2 Answers

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

like image 198
nfechner Avatar answered Sep 20 '22 21:09

nfechner


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
like image 29
Konstantin Komissarchik Avatar answered Sep 21 '22 21:09

Konstantin Komissarchik