Jacques Malaprade wrote:
> Hi Philip,
>
>> 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?
>
> I get the following:
>
>>>> javaclasspath
>     STATIC JAVA PATH
>
>        - empty -
>
>     DYNAMIC JAVA PATH
>
>        /home/malapradej/octave/jOpenDocument-1.2.jar
>        /home/malapradej/octave/odfdom-java-0.8.6.jar
>        /home/malapradej/octave/xercesImpl.jar
>        /home/malapradej/octave/odfdom.jar

Right, so the Java package works OK.

But... why do you have two odfdom.jar versions in the javaclasspath?

>> 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 tried that and it came up with:
>
>>>> m = odsopen ('quizgrade.ods', 0, 'otk')
> Java/ODFtoolkit interface requested... error: No Java support found.
> error: called from:
> error:   /home/malapradej/octave/io-1.0.14/odsopen.m at line 328, column
> 1
> error:   /home/malapradej/octave/io-1.0.14/odsopen.m at line 109, column
> 20

I think I found what happens in your case (and Steph's if he runs Linux 
too).

With the Java-1.2.8 package, javaclasspath() always returns a cellstr 
array, whereas with Java-1.2.7 under Linux it returned a char string.

The call to strsplit now fails because tmp1 is no char string but a 
cellstr array.
I didn't see this as -when java-1.2.8 was released- my version of 
odsopen was already much further developed than the one in the io-1.0.14 
version.

The cure is to replace the statement
   if (isunix) tmp1 = strsplit (tmp1, ":"); endif
with
   if (ischar (tmp1) && isunix), tmp1 = strsplit (tmp1, ":"); endif

Will you try and report back, please?

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to