more specifically, we need to check the
_set_ij_env function in PyimageJ/src/imagej/__init__.py
def _set_ij_env(ij_dir):
"""
Create a list of required jars and add to the java classpath.
:param ij_dir: System path for Fiji.app.
:return: num_jar(int): Number of jars added.
"""
jars = []
# search jars directory
jars.extend(find_jars(ij_dir + "/jars"))
# search plugins directory
jars.extend(find_jars(ij_dir + "/plugins"))
# add to classpath
sj.config.add_classpath(os.pathsep.join(jars))
return len(jars)
The add_classpath function is where we add jars to current classpath
[x] 2.3 - customized plugins
imagej.init()
_set_ij_env
function inPyimageJ/src/imagej/__init__.py
add_classpath
function is where we add jars to current classpath