-
Notifications
You must be signed in to change notification settings - Fork 114
installation: make error Ubuntu 18.04 #163
Comments
I second this as I have this error as well. I made sure to build the cpp side first and install that then turn the java binding on and compile and get the same as above on Linux Mint 19.1: #root@/git/tinyb/build# make |
So went through a lot of tries on building and determined that javah is not working in 1.8 or above. Switched to Java 11 and changed the cmake to use javac -h instead. Had to have the CMakeLists.txt to make it work though. but now have the library. Here is the updated CMakeLists.txt that needs to be updated in the java directory before you run
|
I was able to overcome this issue by explicitly setting the JAVA_HOME environmental variable then re-running cmake:
The output for those interested:
|
@bwssytems I did try your solution without success... (I'm running Java 11 on raspberry pi 3)
@mpbarnwell also tired setting Java 8 with 😭 |
@gpietro Worked ok for me with a Java 8 JDK. No go with Java 11. export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ on Ubuntu 18.4 |
#164 might solve this. |
Hi, On Ubuntu 20.04 |
Make sure you have jdk and not just jre. BTW you don't need to install it, just download an archive from here, for example: https://adoptopenjdk.net/releases.html and extract to some folder. |
Hello there! I still cannot understand how am I missing this file I get this:
|
So updating what works for me now that I had to go back and use tinyb again: OpenJdk 1.11 running from the clone from git and following the build instructions for Java Change the file java/CMakeLists.txt to this and replace to the actual path
Need to Change Java file java/BluetoothManager.java and comment out API version code like so:
|
Worked for me. After so many days of stress. Thanks. |
I'm trying to install tinyb on my PC (ubuntu 18.04 os) but I receive this error during the make command:
Generating JNI headers..
Error: Could not find class file for 'tinyb.BluetoothAdapter'.
java/CMakeFiles/tinybjar.dir/build.make:93: recipe for target 'tinybjar' failed
make[2]: *** [tinybjar] Error 1
CMakeFiles/Makefile2:87: recipe for target 'java/CMakeFiles/tinybjar.dir/all' failed
make[1]: *** [java/CMakeFiles/tinybjar.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I've searched in the folders and the .class files are in that position so I cannot understand why I have this issue. Could you help me?
The text was updated successfully, but these errors were encountered: