[LWJGL] How to change natives in code

How would I change the natives of a lwjgl game in code? So that in the main method when the game starts up it will find the OS and then change to the respective native folder.