You are not logged in.
So I had installed octave using pacman from the extra repo, and not from source. But when I run octave-cli and check:
octave:1> javaclasspath
error: javaMethod: Octave was not compiled with Java interface
error: called from
javaclasspath at line 64 column 16
I tried following https://wiki.archlinux.org/index.php/Oc … _available. But it seems like the wiki is outdated, or that solution is not relevant for this error.
Can someone check if they have the same issue. If not, do you have an idea to fix this?
More details of my installation
$ pacman -Qi octave
Name : octave
Version : 4.0.3-1
Description : A high-level language, primarily intended for numerical computations.
Architecture : x86_64
URL : http://www.octave.org
Licenses : GPL
Groups : None
Provides : None
Depends On : fftw curl graphicsmagick glpk hdf5 qhull fltk arpack glu
ghostscript suitesparse gl2ps qscintilla libsndfile
Optional Deps : texinfo: for help-support in octave [installed]
gnuplot: alternative plotting [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 49.80 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Wed 03 Aug 2016 09:36:18 CEST
Install Date : Sat 06 Aug 2016 01:09:48 CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Offline
Typically I wouldn't have been bothered by this. But to use a python module called pymatbridge the java interface is required. See below.
In [1]: import pymatbridge
In [2]: pymat = pymatbridge.Octave()
In [3]: pymat.start()
Starting Octave on ZMQ socket ipc:///tmp/pymatbridge-a1d40d41-2dca-499e-b54d-52f3646dde1e
Send 'exit' command to kill the server
error: javaMethod: Octave was not compiled with Java interface
error: called from
javaclasspath at line 64 column 16
json_startup at line 33 column 3
matlabserver at line 6 column 1
error: evaluating argument list element number 2
error: called from
json_startup at line 33 column 3
matlabserver at line 6 column 1
error: evaluating argument list element number 1
error: called from
json_startup at line 33 column 3
matlabserver at line 6 column 1
............................................................Octave session timed out after 60 seconds
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-df363ba1cb5b> in <module>()
----> 1 pymat.start()
/scratch/avmo/opt/mypy2/lib/python2.7/site-packages/pymatbridge/pymatbridge.pyc in start(self)
223 return self
224 else:
--> 225 raise ValueError("%s failed to start" % self._program_name())
226
227 def _response(self, **kwargs):
ValueError: Octave failed to start
Offline
This is the first I've heard of octave, so I don't have any first hand knowledge, but with a little bit of Googling, I found: https://github.com/Homebrew/homebrew-sc … ssues/1899 and https://github.com/Homebrew/homebrew-sc … ssues/2882, which indicates that Java is/will be disabled by default now by upstream since late 2015. Maybe it took that long to get released and then picked up by Arch?
Offline
Octave (GNU Octave to be precise) is an open-source software which can run a lot of MATLAB codes - making it a strong competitor.
Thanks for that little research twelveeighty. I am OK if Java was just disabled - then I could have just enabled by setting some option or environment variable.
The Octave wiki seems to suggest that for version > 3.8 Java is included by default; see below:
GNU Octave 3.8.0 incorporated the Octave Forge java package so the package is no longer necessary. If the package is installed, it will shadow the core functions making the java interface unreliable.
However, even for these versions, Octave needs to have been built with java support
That would imply the official octave package in ArchLinux/extra repo is not built with Java support.
EDIT: PKGBUILD in extra and AUR differ. The latter is built with Java support. Also I saw this has been a feature request in the bug tracker for quite sometime .
Last edited by R00KIE (2016-08-06 21:50:34)
Offline
@jadelord
Don't do what you just did on that link to the bug tracker again, getting a logged in user to cast a vote for that bug by just following the link is underhanded, if other users really care about the bug they can cast the vote themselves.
If you have not done it on purpose please try to be more careful next time.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
@R00KIE Apologies! It wasn't on purpose. And thanks for fixing it
Offline