Im getting started with OOP in matlab. However using java objects in my code causes me quite a bit of a headache. Specifically I run into this error when I try to run testClass.start():
Undefined function 'SessionSettings' for input arguments of type 'char'.
The mentioned function is present in the jar which gets imported and the code is running fine if it's run outside of a matlab class. here's the class:
classdef testClass
properties
data
end
methods
function obj = testClass()
% class constructor
javaaddpath /home/test/test-examples-1.5.3.jar;
import test.examples.thingy.*;
end
function ret = start()
%
settings = sessionSettings('configFilePath');
end
end
end