Issue while building phoneme in scratchbox
I was trying to build phoneME inside scratchbox (1.07) on ubuntu (linux). As phoneme requires j2sdk 1.4 for build, I placed j2sdk installation inside /host_usr, and created soft link to java & javac inside /host_usr/bin . But when build try to access java binary , I get following error message.
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment
If I place j2sdk installation under user home directory (~) , and set this path to JDK_DIR, then it works properly for i386 build. But when I try to compile for ARM , it wont work giving error as corrupt binary (because I have only i368 binary of J2SDK).
What could be solution for this? My main intension is to be able to use J2SDK for all targets (i386/ARM/etc).
I tried setting various paths such as JAVA_HOME/LD_LIBRARY_PATH but of no use.