I am trying to compile bluecove for our schools raspberry pi 4 computers. We want to use Bluecove to connect our old Lego NXT to the raspberry pis via bluetooth.
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-post-Raspbian-5)
OpenJDK Server VM (build 11.0.3+7-post-Raspbian-5, mixed mode)
when running ant all I get the following error message.
ant all
Buildfile: /tmp/bluecove-gpl-2.1.0/build.xml
clean:
[delete] Deleting directory /tmp/bluecove-gpl-2.1.0/target
init-native:
[mkdir] Created dir: /tmp/bluecove-gpl-2.1.0/target/classes
[mkdir] Created dir: /tmp/bluecove-gpl-2.1.0/target/native
[echo] java.home /usr/lib/jvm/java-11-openjdk-armhf
verify-java-home:
verify-cruisecontrol:
init:
verify-bluecove-main-exists:
compile:
[echo] compiling on java 11.0.3
[javac] /tmp/bluecove-gpl-2.1.0/build.xml:87: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 3 source files to /tmp/bluecove-gpl-2.1.0/target/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 6
[javac] warning: [options] source value 6 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: /tmp/bluecove-gpl-2.1.0/src/main/java/com/intel/bluetooth/BluetoothStackBlueZ.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: /tmp/bluecove-gpl-2.1.0/src/main/java/com/intel/bluetooth/BluetoothStackBlueZ.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 warnings
jni-headers:
[echo] create JNI headers using java.home /usr/lib/jvm/java-11-openjdk-armhf
BUILD FAILED
/tmp/bluecove-gpl-2.1.0/build.xml:99: javah does not exist under Java 10 and higher, use the javac task with nativeHeaderDir instead
Total time: 12 seconds