I'm using Octave 4.2.1 on Windows 10. When I type in the Octave console:
>> __have_feature__ JAVA
ans = 1
So java is enabled. Using the Command Prompt on Windows I found that I have java version "1.1.0_71". So java is present and running. But when I try to call a java fuction in Octave I get:
cp = javaclasspath
error: unable to find Java Runtime Environment: software\javasoft\java runtime environment::Currentversion
And when I just type 'java -version':
>> java -version
error: 'java' undefined near line 1 column 1
I checked the environment variable for java:
>> getenv JAVA_HOME
ans = C:\Program Files\Java\jdk1.7.0_71
Again, this looks fine. FInally I even tried to install Octave from scratch, but this did not solve the issue. My guess is that it has something to do with the 'software\javasoft\java runtime environment::CurrentVersion' but I'm unable to figure out what it is.