Working in an anaconda jupyter notebook, within an Apache Toree - Scala kernel.
I'm calling : System.loadLibrary("libName") and I get a java error saying no libName in java.library.path while when I check the env I see LD_LIBRARY_PATH=/path/to/lib/folder, with folder containing libName.so. I also called System.getProperty("java.library.path") to check directly the java var, and it contains /path/to/lib/folder too.
Does anybody know what I'm doing wrong ?
I get the env to have this variable set modifying the jupyter_notebook_config.py, using the two following python lines :
os.environ['LD_LIBRARY_PATH'] = "/path/to/lib/folder"
c.Spawner.env.update('LD_LIBRARY_PATH')
Fix found. Put the
libName.sowithin[...]/anaconda3/lib/python3.7/site-packages/toree/lib. ThenSystem.loadLibrary("libName")will work.