Hi Philip,
With reference to Jacques' post below, this was the result after I made
the change:
octave-3.2.4:2> *readods*
Supported interfaces: warning: No support for OpenOffice.org .ods I/O
error: matrix cannot be indexed with .
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: called from:
error: /usr/share/octave/packages/3.2/io-1.0.12/odsfinfo.m at line 87,
column 3
error: /500/Research/Stabilisation/readods.m at line 3, column 15
octave-3.2.4:2> *[exist, names] = odsfinfo ('Protocol.ods');*
error: No Java support found.
error: called from:
error: /usr/share/octave/packages/3.2/io-1.0.12/odsopen.m at line 329,
column 1
error: /usr/share/octave/packages/3.2/io-1.0.12/odsopen.m at line 148,
column 19
error: /usr/share/octave/packages/3.2/io-1.0.12/odsfinfo.m at line 78,
column 6
octave-3.2.4:2> *pkg list*
Package Name | Version | Installation directory
---------------+---------+-----------------------
gsl *| 1.0.8 | /usr/share/octave/packages/3.2/gsl-1.0.8
io *| 1.0.12 | /usr/share/octave/packages/3.2/io-1.0.12
java *| 1.2.8 | /usr/share/octave/packages/3.2/java-1.2.8
miscellaneous *| 1.0.9 |
/usr/share/octave/packages/3.2/miscellaneous-1.0.9
statistics *| 1.0.10 | /usr/share/octave/packages/3.2/statistics-1.0.10
octave-3.2.4:3> *ods1 = odsopen ('Protocol.ods',[],'OTK');*
Java/ODFtoolkit interface requested... error: No Java support found.
error: called from:
error: /usr/share/octave/packages/3.2/io-1.0.12/odsopen.m at line 329,
column 1
error: /usr/share/octave/packages/3.2/io-1.0.12/odsopen.m at line 109,
column 20
octave-3.2.4:3>
Note: the result is not the same when run from a script or from the
command line.
Please keep in mind that I am io-1.0.14 with octave-3.2.4 as you
recommended in some of our previous correspondence.
On 05/09/2011 15:50, Jacques Malaprade wrote:
Hi Philip,
I followed your advice and changed to the code to below:
# No Java support
if ~(isempty (odsinterfaces.OTK)&& isempty (odsinterfaces.JOD))
# Some Java-based interface requested but Java support
is absent
error ('No Java support found.');
else
# No specific Java-based interface requested. Just
return
odsinterfaces.OTK = 0;
odsinterfaces.JOD = 0;
return;
endif
It now comes up with the following error:
m = odsopen('quizgrade.ods')
Supported interfaces: warning: No support for OpenOffice.org .ods I/O
m = [](0x0)
Hope this helps,
Jacques
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev