Skip to content

Commit 1eb91fc

Browse files
committed
Updated Matlab Dynamic loading of the java library, so that it only has to be on the path and not in the folder
1 parent 7a28266 commit 1eb91fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

getChebiEntity.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
end
1414

1515
if ~found_libchebi
16-
javaaddpath('libChEBIj-1.0.0.jar');
16+
folder = which('libChEBIj-1.0.0.jar');
17+
javaaddpath(folder);
1718
end
1819

1920
chebiEntity = javaObject('uk.ac.manchester.libchebi.ChebiEntity', id);
20-
end
21+
end

0 commit comments

Comments
 (0)