pic11
pic11

Reputation: 14943

Should native DLL and JRE address models match?

Can 32 bit native DLL be loaded from 64 bit JRE? If not what is the best solution? Should user install both 32 and 64 bit versions of JRE?

Thank you.

Upvotes: 1

Views: 252

Answers (2)

Peter Lawrey
Peter Lawrey

Reputation: 533530

If you want to use a 64-bit JVM but have a 32-bit DLL you need to use, you can run both and have the 64-bit JVM talk to the 32-bit JVM when it needs to the DLL to do something.

Upvotes: 1

hmjd
hmjd

Reputation: 121971

Both 32-bit and 64-bit versions of the JRE would need to installed and used accordingly. Note, this is not requirement of the JRE but of Windows. From Programming Guide for 64-bit Windows:

... 32-bit processes cannot load 64-bit DLLs for execution, and 64-bit processes cannot load 32-bit DLLs for execution.

Upvotes: 5

Related Questions