The error message tells you that the gnu linker (ld) did not find the library jvm.a (static link) or jvm.so (dynamic link - like dlls at Windows) in its search path. By default the JAVA_HOME path is not in the LD_LIBRARY path.
But the setup.py script does some magic (finding the jdk path, configuring the ld path,...). On a Linux system it uses the JAVA_HOME path variable from its (setup.py-process) environment.
Knowing your statements above (which are quite few ;-) ), it should work.
So what could be wrong?
1st) You said you set the JAVA_HOME variable, but did you export it?
You can test it by entering
on the command line. You'll get a list with all exported variables. If JAVA_HOME is not contained. You can enter
2nd) You said that JAVA_HOME points to /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt. Does this directory exists and is it a complete JDK installation.
Does this change the directory? Is there a
lib subdirectory that containes a
I would suggest you try this at first. Perhaps it will work or brings you to some clues. And comment my answer if there are some further questions. Hope this helps.