Reputation: 823
I've created a stand-along swt application. I've used the 32 bit jars for the application. When I transfered the application to 64 bit jvm I got the unstaisfied linker errors. So I used the 64 bit jars.
I need the application to decide the jars either 64 bit or 32 bit based on the jvm version. I'm able to find the jvm version using the System.getProperty("sun.arch.data.model"), using this can I choose the jars to load into the memory.
Upvotes: 0
Views: 71
Reputation: 3538
Yes you can make your application dynamically be able to select an appropriate version of the jar . Its over a good thing to do as it ensures portability of your application .
Check this Select correct jar for your jvm at runtime
Upvotes: 1