Issue: Per the error message, the current Octave distribution was not built with Java support.
I am trying to invoke Java methods in a Jupyter notebook run on AWS Studio Lab via octave magic. Octave v6.4.0 was installed in the notebook via conda. Octave functionality works well in the environment, except for Java methods, which fail with the error message: “error: javaObject: support for Java was unavailable or disabled when Octave was built.”
Issue: Per the error message, the current Octave distribution was not built with Java support.
I am trying to invoke Java methods in a Jupyter notebook run on AWS Studio Lab via octave magic. Octave v6.4.0 was installed in the notebook via conda. Octave functionality works well in the environment, except for Java methods, which fail with the error message: “error: javaObject: support for Java was unavailable or disabled when Octave was built.”
Steps to reproduce the error
Create conda env conda create -n test_env python==3.7 conda activate test_env
Define JAVA_HOME
Install octave conda install -y -c octave oct2py octave_kernel
In Jupyer notebook with Octave kernel: %%octave javaObject(“java.math.BigDecimal”,1.001)
Environment (
conda list
):Details about
conda
and system (conda info
):