Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the ant tasks fails because jni.h is missing edit the build.xml in line 12 from  <condition property="jni.include.dir" value="${java.home}/../include"> to     <condition property="jni.include.dir" value="${java.home}/include"> if you use java 11 or later, since this was build for java 8 where the java executable was in /jre/bin and not in /bin.

Furthermore, to use USB connection, a java library has to be compiled via ant. To do this perform cd /path/to/leJOS/build and start ant. If the ant build tool is not installed on your system, you can do so via sudo apt-get install ant.

...