help-octave
[Top][All Lists]
Advanced

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

Re: installing java and apache for using spreadsheet I/O


From: Tatsuro MATSUOKA
Subject: Re: installing java and apache for using spreadsheet I/O
Date: Wed, 18 Jun 2014 09:55:03 +0900 (JST)




----- Original Message -----
> From: Tatsuro MATSUOKA 
> To: tmacchant@ "help-octave@
> Cc: 
> Date: 2014/6/18, Wed 08:53
> Subject: Re: installing java and apache for using spreadsheet I/O
> 
> ----- Original Mssage -----
> 
>>  From: tmacchant 
>>  To: help-octave
>>  Cc: 
>>  Date: 2014/6/18, Wed 08:02
>>  Subject: Re: installing java and apache for using spreadsheet I/O
>> 
>>  Your current condition :windows 8.1, excel2007 and GNU octave 3.6.4 VS2010
>> 
>>  I have tested on windows 8.1, excel2013 and GNU octave 3.6.4 VS2010.
>>  (My win 8.1 PC excel 2013 is installed)
>> 
>>  pkg load io
>>  pkg load windows
>>  a=xlsread('test.xlsx')
>> 
>>  Detected XLS interfaces: COM*; warning: __chk_java_sprt__: some elements in
>>  list
>>  of return values are undefined
>>  warning:  No Java support found (no Java JRE? no Java pkg installed AND
>>  loaded?)
>> 
>> 
>>  a =
>> 
>>     1   2   3
>>     4   5   6
>>     7   8   9
>> 
>>  Without java package loaded, xlsread worked for me though a warning was
>>  appeared.
>> 
>>  I cannot help further because I cannot reproduce your error.
>> 
>>  Information io 1.2.2, java 1.2.9, and windows 1.2.1. (Octave 3.6.4  VS2010
>>  prebuilt packages.)
>> 
> 
> 
> Hello
> I have tested further on octave-3.8.1 on win 7 with excel 2010.
> 
> Octave-forge packages are built with build_packages 
> at C:\octave\Octave-3.8.1\src
> There is no java package.
> octave:3> pkg load io
> octave:4> pkg load windows
> octave:5> a=xlsread('test.xlsx')
> Detected XLS interfaces: COM*; (* = default interface)
> a =
> 
>    1   2   3
>    4   5   6
>    7   8   9
> octave:6> a=xlsread('test.xls')
> a =
> 
>    1   2   3
>    4   5   6
>    7   8   9
> 
> io-2.2.2 and windows 1.2.1 are installed by "build_packages" script.
> 
> xlsread works on both win 7 and 8 and octave 3.6.4 and 3.8.1.
> 
> I do not know what is wrong with you.


On octave-3.8.1, I have worked further.

For xlsx (but not xls), only io package is required to load.
For xls, io and windows packages are required to load and excel is to be 
install in the PC.

As  Markus recommended that convert xls files to xlsx ones and execute xlread 
after io package to load.

BTW, java package can be installed after install of oracle java JDK.
Here I write memo
Download oracle java JDK (32 bit because octave-8.3.1 MXE is 32 bit version) 
from

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
jdk-8u5-windows-i586.exe

And install it.

Execute octave,

set JAVA_HOME as
setenv("JAVA_HOME", "C:/Program Files (x86)/Java/jdk1.8.0_05")

Execute pkg install

pkg install -forge java

Currently (2014-06-18), java-1.2.9 is installed.

Tatsuro




reply via email to

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