There may be an error in line
octave> setenv ("PATH", [ JAVA_HOME filesep bin pathsep getenv("PATH") ])
What works for me is
octave> setenv ("PATH", [ getenv("JAVA_HOME") filesep bin pathsep getenv("PATH") ])
There may be an error in line
octave> setenv ("PATH", [ JAVA_HOME filesep bin pathsep getenv("PATH") ])
What works for me is
octave> setenv ("PATH", [ getenv("JAVA_HOME") filesep bin pathsep getenv("PATH") ])