LWJGL Invalid Enum Exception

My game runs perfectly fine on my computer. When I start it on some laptop, and try to do Display.setVsyncEnabled() I get LWJGL Invalid Enum Exception.

What could be causing this absurd error? Is this error in my code?

Worst case scenario is I would go and install Eclipse on that laptop and find out what is causing this error with a lot of trial and error, which I would rather avoid if possible.