I have installed the java successfully (I think), see result of pkg list:

octave-3.2.4:1> pkg list
Package Name       | Version | Installation directory
-------------------+---------+-----------------------
          control *|  1.0.11 | /usr/share/octave/packages/3.2/control-1.0.11
          general *|   1.2.2 | /usr/share/octave/packages/3.2/general-1.2.2
              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
   linear-algebra *|   2.0.0 |
/usr/share/octave/packages/3.2/linear-algebra-2.0.0
    miscellaneous *|   1.0.9 |
/usr/share/octave/packages/3.2/miscellaneous-1.0.9
missing-functions *|   1.0.2 |
/usr/share/octave/packages/3.2/missing-functions-1.0.2
        multicore *|  0.2.15 |
/usr/share/octave/packages/3.2/multicore-0.2.15
              nan  |   2.3.1 | /usr/share/octave/packages/3.2/nan-2.3.1
             nnet *|  0.1.12 | /usr/share/octave/packages/3.2/nnet-0.1.12
           odepkg *|  0.6.10 | /usr/share/octave/packages/3.2/odepkg-0.6.10
         outliers *|  0.13.9 |
/usr/share/octave/packages/3.2/outliers-0.13.9
             plot *|   1.0.8 | /usr/share/octave/packages/3.2/plot-1.0.8
          specfun *|   1.0.9 | /usr/share/octave/packages/3.2/specfun-1.0.9
       statistics *|  1.0.10 |
/usr/share/octave/packages/3.2/statistics-1.0.10
         symbolic *|   1.0.9 | /usr/share/octave/packages/3.2/symbolic-1.0.9
             time *|   1.0.9 | /usr/share/octave/packages/3.2/time-1.0.9
octave-3.2.4:2> 

I've followed all the other steps and downloaded chk_spreadsheet_support now
with result:

octave-3.2.4:4> chk_spreadsheet_support ('/usr/lib/java/',3)

Checking Excel/ActiveX/COM... not working.

Checking Java support...
  1. Checking Java JRE presence.... OK, found one.
  2. Checking Octave Java support... error: No Java support found.
error: called from:
error:   /usr/share/octave/packages/3.2/io-1.0.12/chk_spreadsheet_support.m
at line 173, column 3
octave-3.2.4:4> 


I think I still have some rights issues, see following:

octave-3.2.4:3> javaaddpath ('/usr/lib/java/xercesImpl.jar') 
error: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client/libjvm.so: cannot
open shared object file: No such file or directory
error: called from:
error:   /usr/share/octave/packages/3.2/java-1.2.8/javaaddpath.m at line 41,
column 13
octave-3.2.4:3> 

This is a very complicated process indeed for a novice.






PhilipNienhuis wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ODS-%28OpenOffice.org-Calc%29-read-support-added-to-IO-package-tp26969200p31999738.html
Sent from the octave-dev mailing list archive at Nabble.com.


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