Skip to content
Snippets Groups Projects
Commit a42707df authored by ac's avatar ac
Browse files

addsqlitetopath

parent 136f2b62
Branches
No related tags found
No related merge requests found
function AddSQLiteToPath()
%CHECKJARPATH Summary of this function goes here
% Detailed explanation goes here
if isdeployed()
return
end
%% ensure that the sqlite jar file is on the path
dynamicPaths = javaclasspath('-dynamic');
bfIsLoaded = false;
if (~isempty(dynamicPaths))
for i=1:length(dynamicPaths)
[~,name,~] = fileparts(dynamicPaths{i});
if (strcmpi('sqlite-jdbc-3.21.0',name))
bfIsLoaded = true;
break
end
end
end
if (~bfIsLoaded)
curPath = mfilename('fullpath');
[pathstr,~,~] = fileparts(curPath);
javaaddpath(fullfile(pathstr,'sqlite-jdbc-3.21.0.jar'),'-end');
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment