Hi Jacques,

Jacques Malaprade wrote:
> Hi Philip,
>
>> But... why do you have two odfdom.jar versions in the javaclasspath?
>>
>
> I have tried both versions on their own, but is still does not work.
> Which one should I keep do you think?

Doesn't matter much which one.

It may be helpful to download again odfdom.jar v.0.8.6 just to be sure 
(v. 0.8.7 doesn't work with io-1.0.14).
FYI I run odfdom-0.8.6 myself rather than 0.8.7 (probably just lazyness 
at my side - I know odfdom-0.8.7 works OK).

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

I saw that I have already fixed this in svn last June.
Too late however for io-1.0.14 :-(

>   I did this in the odsopen.m file and the following was the output:
>
>>>> m = odsopen ('quizgrade.ods', 0, 'otk')
> Java/ODFtoolkit interface requested...  Java/ODFtoolkit (OTK) OK.

Good, the fixed stanzas in subfunction getodsinterfaces() work properly 
at last for you (in the sense that they generate no more unexpected 
errors).
So that's bug fix #1 :-)

The OTK interface (odfdom.jar & xercesImpl.jar) were found (otherwise 
control would never reach into line 187), so that looks good too.

> error: Couldn't open file quizgrade.ods using OTK
> error: called from:
> error:   /home/malapradej/octave/io-1.0.14/odsopen.m at line 187, column
> 5
>>>> m = odsopen ('quizgrade.ods')
> error: Couldn't open file quizgrade.ods using OTK
>>>> error: called from:
> error:   /home/malapradej/octave/io-1.0.14/odsopen.m at line 187, column
> 5

Now the issue is why the code in the try section of the try-catch 
construct fails.
Easiest is to comment out the try (L.169) statement and all code between 
the catch and end_try_catch inclusive (Ls. 183-189) statements and run 
your script again.
Chances are you get Java errors, but that is only helpful. Please report 
them here.

(You can also try odfdom.jar v. 0.7.5 (old but very well tested for io pkg)

Philip

------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to