help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xlsread in Octave 3.6.4


From: nitnit
Subject: Re: xlsread in Octave 3.6.4
Date: Fri, 3 May 2013 11:50:54 -0700 (PDT)

am304 wrote
> PS: this is what I have in my octaverc file. I have just noticed that
> JAVA_HOME points to a different (but valid) location from what
> "chk_spreadsheet_support ([ OCTAVE_HOME "/lib/java" ], 3)" seems to find.
> Could that be the cause of the problem (I've removed all unnecessary
> commented lines)?

The JAVA_HOME enviroment var is required only for using the java sdk which
is usually used to build and install the java pkg or to compile java code.
If you have used the pre-compiled pkgs for mingw and you do not need to
re-install a newer java pkg you do not need to set the JAVA_HOME at all !

However, this is not the cause for the io pkg failure to detect the jars
upon loading. It seems that with recent io pkg (io-1.2.1) the install
procedure does not install its PKG_ADD file in
<octave_root>/share/octave/packages/io-121

So if you want to fix this problem in your environment before a fix will be
applied to the io pkg install, you can add a text file named PKG_ADD in your
<octave_root>/share/octave/packages/io-121 directory with the following code
(I have taken this from io-1.0.17 which has been properly installed):

## PKG_ADD
## add paths of io pkg java jars if java pkg is installed and loaded
pkglist = pkg ("list");
javapkgind = find (cellfun(@(x) strcmp(x.name, "java"), pkglist), 1,
"first");
if ~isempty (javapkgind)
  javapkg = pkglist{javapkgind};
  if javapkg.loaded
    # Assume jar files are in /lib/java and let chk_spreadsheet_support sort
it out
    libdir = octave_config_info("libdir");
    spr_status = chk_spreadsheet_support ([libdir "/java"]);
  endif
endif



Philip, It seems that the missing PKG_ADD problem exist as least from
io-1.0.19 !

Nitzan








--
View this message in context: 
http://octave.1599824.n4.nabble.com/xlsread-in-Octave-3-6-4-tp4652046p4652618.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]