The Java Interface is designed for calling Java functions from within Octave.
If you want to do the reverse, and call Octave from within Java, try
a library like
javaOctave (https://kenai.com/projects/javaoctave/pages/Home) or
|• Java Interface Functions:|
|• Making Java Classes Available:|
|• Creating an Instance of a Java Class:|
|• Handling Java Memory Limitations:|