I use eclipse for what I thought was for all 64-bit runtimes. The current Java settings> are installed by the JRE and the runtime all points to jdk1.6.0_30, which is a 64-bit version of the JDK. However, eclipse still believes that it launches the 32-bit version, because when I run:
System.getProperty ("sun.arch.data.model");
it returns 32 instead of 64.
And the external JNI resource that I compiled for 64-bit machines will not be associated with the shared .so file if it does not work in an environment with a 64-bit environment. (I get word size mismatch errors when I try to do this)
So how can I reconfigure eclipse to run 64bit jvm. Should the eclipse be a 64-bit version?
: on linux
Edit: I tried all the suggestions and nothing works. I changed the execution and environment variables to point to the new JDK, I have 1.6_30. when I run the program from the command line, I get 64 and amd64 as the value when I run the same program in eclise. I get 32 ββand i386. Something is wrong with the eclipse, which makes it try and run it on a 32-bit JVM. when I try java -d32 -version, it says that the 32-bit environment is not installed, but Eclipse does not know this. I changed the Eclipse.ini file and still nothing works. After these changes, I restarted eclipse ... nothing. Maybe someone who knows the eclipse well, people help me here. thanks
source share