James Wierzba
James Wierzba

Reputation: 17568

Call a 3rd party API using 64bit jre from inside a desktop application running on 32bit jre? Is it possible?

Basically we have a very large java application that needs to be ran on 32 bit jre based on many 3rd party components that require 32 bit jre (so that they can load their own 32bit dlls).

Now, we have a new 3rd party software whos API we must call in a 64 bit jre (for the similar reason that their dlls are 64 bit only).

Is it possible for the whole application to run under 32 bit jre, and then when we need to call our new API, launch some sort of module that runs on 64 bit jre, so that the 3rd party API won't blow up when it uses it's 64 bit dlls?

FYI the development environment we use is IntelliJ.

Upvotes: 0

Views: 77

Answers (1)

yole
yole

Reputation: 97268

The only possibility is to run the 3rd party software in a separate 64-bit JVM and to use RMI or a different RPC mechanism to communicate between your main JVM and the JVM running the third-party software.

Upvotes: 1

Related Questions