简体   繁体   中英

About 64 bit and 32 bit JVM

I am writing a JAVA program calling dll functions with JNI. In order to load the library I may need to install 32-bit JVM on my 64-bit machine. However, no matter what I installed (even those which are supposed to be installed on 32-bit system), eclipse always indicates that it is 64 bit.

Do you guys know how to fix that?

Millions of thanks~

For manually configuring JVM you need to edit the eclipse.ini file.

Have a look at here

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

This one worked for me.

But As you are using JNI. There may be some issue with 32 bit and 64 bit dll.

the .dll should have some native code. IA-32 bit means Intel architecture. So it should not be loaded in a AMD 64 bit platform. you should try to make the .dll compatible for AMD -64 bit platform. Try some cross compiler.

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