tags:

views:

152

answers:

2

Hello

Is there a way in Java to determine if the software is run on an x32 or x64 operating system - and in function of that - include a different jar during runtime?

I am using qtjambi and they wrap the QT c and c++ libraties in an xxx_x32.jar and xxx_x64.jar

Thanks for your feedback Marc

A: 

If you deploy with WebStart you can specify platform-specific JARs in the JNLP file

Matt
Thanks for your answers! Is this also possible when I don´t use WebStart? Do you have any idea how this is solved in WebStart?Thanks!
Marc Giombetti
+1  A: 

You can find if the JRE is 32 or 64 bit by looking at the "os.arch" system property

Jarle Hansen