LWJGL Using 64bit natives

Hello so a noob here is wondering how to setup LWJGL so it uses 64bit natives on 64bit systems and 32bit on 32bit. ;D

The same noob (who is me if you could not guess) also would like to know if there was an easier way of porting

linux/mac/windows versions of a program to a different OS. So if I made a program on a Mac how could I distribute it to someone using Windows.

Any help would be much appreciated.

It automatically chooses the right natives for the platform :stuck_out_tongue:
Just dump all the natives in one folder (except for Solaris) and LWJGL will use the correct ones.

You sure? because I tried that and it did not work. At least in eclipse when you set the natives for lwjgl and you just say to use the natives folder it will not run.

You need to set the folder that contains the natives directly. In Eclipse, you just need to choose the folder of your OS. When distributing your application, dump all that natives in 1 folder and set that as the -Djava.library.path=“natives/”

For more information on distributing your LWJGL application, this wiki explains your options in detail.