I'm trying to run a .jar file made in Eclipse using JDK 11 on a raspberry pi 4. For the Raspbian OS I had to use a 64-bit version instead of a 32 bit.
I put the jar into a folder together with the native files to get it to run as per this link, but it doesn't seem to work.
I ran java -version in raspbian to check the version of java, and it is using 11.0.8 The project seems to run alright in Eclipse, but doesn't run on my raspberry pi. When I run the jar from the raspbian terminal, it returns the error:
Failed to load library: /boot/arcade_test/libjinput-linux64.so: /boot/arcade_test/libjinput.64.so: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)
I don't think I'm missing the actual library. The terminal called the error a java.lang.UnsatisfiedLinkError. I used the following line to hardcode where my program should look for the library.
System.setProperty("net.java.games.input.librarypath", new File("/boot/arcade_test").getAbsolutePath());
Does anyone know what exactly is happening and how I can fix it?
Here's the link to where I found the .img file for the raspbian os that I'm using