Thank you for your response, but I have an issue.
I don't know where to get lwjgl-platform-2.7.1-natives jar. I tried copying 2.9.0 and replacing the libraries inside
with the ones from lwjgl-2.7.1 download, but in that case I get the error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/azat/.minecraft/versions/1.6.2-patched/1.6.2-patched-natives-12763220458973/liblwjgl.so: /home/azat/.minecraft/versions/1.6.2-patched/1.6.2-patched-natives-12763220458973/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
I run the 64 bit system btw.
Is there at least a way to use another version of lwjgl?
It turned out that the link error was somehow related to my java installation, fixed it by replacing it with openjdk.
The solution works with the 2.8.0 version of lwjgl, thank you.