|
From: | Arnaud Miege |
Subject: | Re: xlsread in Octave 3.6.4 |
Date: | Tue, 7 May 2013 13:04:46 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |