I managed to fix the issue but now another popped up :
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
I tried to put the .so file in the lib and bin folders but none seem to help
Thanks
Edit : Solved that as well :/ After messing around moving files to folders I decided to move another version of the .so file to one of the library paths and that worked
