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
|• Making Java Classes Available:|
|• How to use Java from within Octave:|
|• Passing parameters to the JVM:|
|• Java Interface Functions:|