[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Java Error xlsread
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Java Error xlsread |
Date: |
Tue, 31 Mar 2015 18:31:37 +0900 (JST) |
----- Original Message -----
> From: Imran Azeezullah
> To: help-octave
> Cc:
> Date: 2015/3/31, Tue 10:48
> Subject: Re: Java Error xlsread
>
> On 30/03/15 17:01, adrianc852 wrote:
>> Hello,
>>
>> I am using the GUI 3.8.2 version of Octave on the 64 bit Windows 8.1 using
>> 32 bit excel 2010. I am having trouble installing and loading the java
>> package. I use the command to download it. I also use the setenv command
>> before installing:
>> setenv ("JAVA_HOME", "C:\Program
> Files\Java\jdk1.8.0_40\jre\lib\amd64");
>>
>> This is the error I get:
>> Error while trying to install Java package:
>> JAVA_HOME environment variable does not properly point to a JDK
>> Hint:
>> JAVA_HOME should usually be set such that either:
>> (on *nix:)
>> <JAVA_HOME>/jre/lib/<arch>/client/ contains libjvm.so
> (file or symlink)
>> (on OSX:)
>> <JAVA_HOME>/../Libraries/ contains a file libclient.dylib
>> (on Windows:)
>> <JAVA_HOME>/jre/lib/<arch>/ contains a file jvm.cfg
>> (<arch> depends on your system hardware, can be i386, x86_64,
> alpha, arm,
>> ...)
>>
>> Ultimately, I would like to use the xlsread command but even when I had
> this
>> working before it would not allow me to specify a worksheet for importing
>> data. Can anyone help?
> From the error and the hint shown, it appears that you should set
> JAVA_HOME to this:
>
> setenv("JAVA_HOME", "C:\Program
> Files\Java\jdk1.8.0_40");
>
> and attempt the installation again. Not sure about the \ business on
> windows, try with / path separator if it doesn't work.
>
> -- Imran
As I wrote previously, you should not install the java package for octave-3.8
or later
because the java feature is implemented to octave-core from octave-3.8 if
binaries build with enabling java.
The latest octave-3.8.2 for windows (3.8.2-5) includes the java feature.
Tatsuro