I've been having difficulty figuring out how to do this. From the Octave website, it seems that java classes are found via a class path. This Stack Overflow answer indicates that the "static java path" is to the "dynamic java path". Yet I'm not sure how to set up the static java path.
In my particular situation of interest, I'm trying to use the javaplex package with Octave - I've contacted the authors of javaplex on Github and they said if Octave can load java classes, then I can use it. Octave can do this, as far as I know. My difficulty is the following.
I am using code written for Matlab, and the differences in how Octave and Matlab interact with Java is throwing me some trouble. I have to set the directory for Octave to be
C:\...\javaplex-master\javaplex-master\dist\matlab-examples-4.3.4\matlab_examples
From here, I run the command "load_javaplex" in the command window, which runs the script "load_javaplex.m". Within this script however are the lines
javaaddpath('./lib/javaplex.jar');
import edu.stanford.math.plex4.*;
where "edu.stanford.math.plex4.*" is a java class (the tutorial also suggests running the second line explicitly).
I've figured out this doesn't work in Octave (as for Java interfacing, I can't just use Matlab code), and so I need to add it to my java classpath to access it. Yet I don't know how to do this in Octave. Should I save some sort of .txt file in the directory that identifies the static class path? Any general info on how I can load java classes in Octave? I am having difficulty with the information available online figuring out how to do this. What do I do after I add something to the classpath?
octave_config_info ("features").JAVAoutputs1in your system, as per this note in the wiki: wiki.octave.org/Java_package - Tasos Papastylianou