tags:

views:

677

answers:

2

I am running a Java 32-bit app on Mac OS X Leopard via Web Start. I need to make sure the VM loads in 32-bit mode. How can I do this in the JNLP?

+2  A: 

I found the answer right after I posted. In the "resources" tag you can do a line like below. The "-d32" will force the 32-bit VM load:

<j2se version="1.5+" java-vm-args="-d32" href="http://java.sun.com/products/autodl/j2se"/&gt;
Ken
A: 

Unfortunately it does not work on Windows.

java -d32

produces following

Unrecognized option: -d32
Could not create the Java virtual machine.

Does anybody knows the answer?

Dmitry
It seems to be impossible on Windows: *All other platforms (Windows and Linux) contain separate 32 and 64-bit installation packages. If both packages are installed on a system, you select one or the other by adding the appropriate "bin" directory to your path* (From http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_description)
DR