Hi Phillip

You can remember that I had to recompile the java package, now my Ubuntu 
has upgraded to a new java version, so I have to recompile my java 
package again (I assume)!

Steph

On 05/09/2011 20:09, Philip Nienhuis wrote:
> 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)
>
> I think what happens is that in the "try" part (a little higher up) 
> the javaclasspath command(s) fail(s) so execution falls into the 
> "catch" part.
>
> What output do you get when you type
>   javaclasspath
> or
>   javaclasspath ("-all")
> at the Octave prompt?
>
>> Hope this helps,
>
> Sure.
>
> I've committed several updates to svn last weekend.
> One of the more sneaky bugs was that after their first call with an 
> empty javaclasspath (i.e., no spreadsheet support), odsopen (and 
> xlsopen) never picked up additions to the javaclasspath unless a 
> specific interface was selected like
>
>   m = odsopen ('quizgrade.ods', 0, 'otk')
>
> (BTW did you try that version of the command anyway?)
>
> I'll try to make a new io package this week for testing by you and Steph.
>
> But first we need to assess whether your java package really works OK.
> Even if "pkg list" shows a java package there's unfortunately no 
> guarantee that it has been built OK; the only reliable check is typing
>   javaclasspath
> at the Octave prompt as that invokes some routines that only work if 
> the java package has been built completely.
>
> (Hmmm... another "bug" in pkg.m - it doesn't remove or roll back 
> incompletely built package directories).
>
> Philip

------------------------------------------------------------------------------
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

Reply via email to