From: Nicholas H. <he...@se...> - 2003-07-26 13:04:38
|
On Thu, 2003-07-24 at 18:46, Gregory Shakhnarovich wrote: > Hi, > > I am hoping someone has faced similar problems and know a solution. A bit > of info: we run a 2.4.20-bproc Debian kernel, with Clubmask, on a 32 node > cluster. > > 1) Despite the fact that /etc/beowulf/config says, among others, > > libraries /usr/lib/j2se/1.4/jre/lib/i386/libja* > > When I try to run Java, I get: > > [378] bourbaki:/root>bpsh 0 java --version > Error: could not find libjava.so > Error: could not find Java 2 Runtime Environment. > > We have fixed similar problems with other libraris by adding them to > 'config' and rebooting. But not this one. Anything special about it? The java 'binary' is actually a shell script that uses $0 to find the path to the java installation. Since bproc does a kinda funky shell hack, this name does not get preserved, in fact it gets replaced with '/proc/self/fd/3', and ofcourse there are no java libraries in that directory tree. I am attaching two file, a shell script and a C program. The shell program you can use like: bpsh 0 cmjava.sh /path/to/java arg1 arg2 ... The C program gets compiled: gcc -o cmjava javawrapper.c -lbproc and run: cmjava 0 /path/to/java arg1 arg2... Let me know if either of these work for you -- and if not, a ton of debugging information. If these end up working for your java needs, we can include them in Clubmask. Nic -- Nicholas Henke Penguin Herder & Linux Cluster System Programmer Liniac Project - Univ. of Pennsylvania |