Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running 32bit eclipse with 32bit jvm on windows 64bit

One of the .jar files I am using only works with the 32-bit java virtual machine on windows. I installed the 32bit versions of eclipse and the jdk but it is still getting the same error. What commands would I use in the run configuration to specify 32-bit virtual machine for running the application that uses this .jar file?

-vm C:\Program Files (x86)\Java\jre6\bin\javaw.exe

doesn't work. Any ideas?

like image 972
Tamas Avatar asked Nov 21 '10 22:11

Tamas


2 Answers

There are TWO JVM's in action when developing with Eclipse. One running Eclipse itself, and the other one used for your program.

Unless you are talking about a plugin, it is the latter you need to worry about. Remove the -vm option so Eclipse starts with the default JRE. Then go to Preferences -> Java -> Installed JRE's and add your 32 bit Java installation and set it to be default (this is the trick).

If the JVM used by your applications change, you are done.

If not, you should start with a new workspace, add the 32-bit JVM and create your projects as before.

like image 141
Thorbjørn Ravn Andersen Avatar answered Oct 03 '22 00:10

Thorbjørn Ravn Andersen


Take a look at this page:

http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F

If you specify your VM within the eclipe.ini it have to be in a special line (I think).

Did you change you installed VMs?

Window -> Preferences -> Java -> Installed JREs

There can be the 64bit VM.

With the -vm parameter you specify the JRE to start Eclipse. With the installed VMs you specify the VM to run you code.

like image 28
Christian Kuetbach Avatar answered Oct 03 '22 00:10

Christian Kuetbach