GENIE:Babel-wrapping:Common Problems

Problem 1
Although the make/build scripts have finished building the wrappers and exited without error, the eb_go_gs (Client.java) does not run and says:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not find native class "...."; check SIDL_DLL_PATH at gov.llnl.sidl.BaseClass._registerNatives(Native Method) at gov.llnl.sidl.BaseArray. (BaseArray.java:44) at .... make: *** [run] Error 1

folder contains the correct absolute path or url to the shared wrapper library produced during the building phase.
 * First, do make sure that the *.scl file in each babel/wrapper


 * In principle, this error means that the implementation or/and the wrapper shared libraries have not been properly and fully linked and that there is something undefined in one of the two. One option to track the nature of the error is the following:


 * Remove the "-shared" from the F90LINK variable in the makefile.arc and go to the babel/impl folder of the module to which the error refers. When executing the GNU 'make' in it, the only error occuring should be mentionning the undefined reference to `MAIN__'. In case of more errors, locate the libraries/locations where they are installed and add them to the F90LINK variable.


 * If the above did not work, do the same with the LINKER variable in the makafile.arc and execute the GNU 'make' in the babel/wrapper folder respectively. In case of more than the the undefined reference to main error, find the appropriate libraries and add them to the LINKER variable.


 * Sometimes it really helps to execute make cleanall, and re-follow the build and run procedure.