java - Can I install a 32-bit JVM and a 64-bit JVM? -


I am using a JNI library which uses 32-bit JVM. Is the current JVM 64-bit installed on my machine, is there any way that I can install 32-bit JVM and 64-bit JVM? Or any cover I can use?

Yes you can have several versions of JVM on your machine. You can only point to JAVA_HOME for one of them. When you want to run a program that requires an optional JVM (like 32-bit), use a startup script that changes your JAVA_HOME for your execution environment and then your program Runs.

I usually do this for development, especially when supporting many products / versions.


Comments