Hi there:

bredsj wrote:
>
> I am unable to install xercesImpl.jar

Well, it would always help to tell us the following:
- What platform (linux, windows, solaris, Mac, OS/2, ...)? I guess Linux 
("sudo")
- Which Octave version?   (do "version" (w/o quotes) in Octave prompt
- Which io package version?  (do "pkg list" in Octave prompt)
(- not strictly needed, but handy) which Java package version?

> I have used the command:  sudo java -jar xercesImpl.jar
>
> I just get the message " Failed to load Main-Class manifest attribute from
> ".

Have you read the README_ODS.html file in the io/doc directory?
I've included a full troubleshooting section there in recent io pkg 
releases. See below for more.

Anyway, this jar story works differently than you seem to think.

xercesImpl.jar and other jar files need to be in the javaclasspath. That 
is similar to the search path for executables (viz. echo $PATH), but 
javaclasspath is special so that the Java Virtual Machine (JVM) can find 
its libraries (i.e., the .jar files).

What you need to do, is to download, or put, xercesImpl.jar (& 
odfdom.jar) into some place where you can "see" them (somewhere on the 
system. I put them in /usr/local/lib, but that may not conform to the 
FHS. Oh well).
Then, for each jar, do in Octave:

  javaaddpath ('/full/path/to/xercesImpl.jar')
:
<for each and every jar you need)

When done, check with
  javaclasspath

Then do odsfinfo ('yourfile.ods', 'otk') and see what happens.

If it all works OK, put the javaaddpath statements in your .octaverc 
file, otherwise you'll have to repeat this every time you start up Octave.


If you'd like to help me test a few things (I'd be grateful in return):

What you can also do is to download the file
  chk_spreadsheet_support.m
from

http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/io/inst/chk_spreadsheet_support.m?view=log
(watch out for line wrap!)
(see download link at the top)
,put it in the io package directory, and run

  chk_spreadsheet_support 
('/path/to/dir/where/all/spreadsheet-jars/are/located', 3)
(watch out for line wrap)

and see what happens.
If all goes well, this script will do all the troubleshooting and 
setting up of javaclasspath etc for you, based on what jar files it finds.
(once setup, you'd still need to add javaaddpath statements to your 
.octaverc file, or call this chk_spreadsheet_support script from there, 
to avoid having to do this every time you start Octave.)

(This script will be in the next io pkg release (1.0.15), as soon as I 
have time to fix the docs for it in texinfo.)


> I have done the same with odfdom.jar
>
> When I run my script to read ods file I get the message:
>
> Supported interfaces:
> warning: No support for OpenOffice.org .ods I/O
> error: matrix cannot be indexed with .
       ^^^
Yes, this message is a buglet (illogical error msg) that I think I fixed 
a while ago.

> 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 85,
> column 3

odsfinfo is not for reading.
odsread does that job (or odsopen - ods2oct - parsecell - odsclose sequence)

> It seems as if I have another problem beyond the Java issue?
>
> I'll appreciate some help and please be kind as I am a real novice!!!!

Well if you say so :-) but we all have been like that, so don't worry.

Please report back if you got any further now.

Philip

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to