title: JInput on RaspberryPi
body: <p>I am trying to get JInput working on a raspeberryPi. I know it is not ideal to use JInput without an ide, but the Raspberry Pi is too slow to work with most of them. I have managed to sucessfully compile and run my program from the command line on windows. However, on the pi i am having trouble. The pi is running raspbian, java version 1.7.0_40 with hotspot client vm build 24.0-b56. I have set up the file structure as so:</p>
  
  <blockquote>
    <p>lib/dist<br>
    -jinput-test.jar<br>
    -jinput.jar<br>
    -Controller<br>
    --.dll, .so files<br>
    --LinuxEnvironmentPlugin.java<br>
    bin<br>
    src  </p>
  </blockquote>
  
  <p>I am using the command </p>
  
  <pre><code>java -Djava.library.path=lib/dist/Controller -Djinput.plugins=net.java.games.input.LinuxEnvironmentPlugin -cp bin:lib/dist/jinput.jar:lib/dist/Controller Main
  </code></pre>
  
  <p>to try and run.</p>
  
  <p>However, i get </p>
  
  <blockquote>
    <p>"INFO: Failed to load library:" /libjinput-linux64.so: /libjinput-linux64.so: wrong ELF class: ELFCLASSS64"</p>
  </blockquote>
  
  <p>This is where I am confused. Why is it trying to use the 64 bit file. The rasperry Pi has a ARM version 6 processor, which only works with 32 bit. So why is it looking for the 64 bit file in the first place? I have also tried running with the -d32 option but that doesn't help.</p>