Thanks for sharing this. I’ve got a problem installing Bazel; apparently is because of the jdk version. I am using a 64 bits Linux Mint 18 distribution. I have found that the error ELFCLASS64 is because of the architecture. The solution proposed in some places is to install the 32 bits jdk, which I have done, but the problem is not solved. Please, can you give me a clue?