[Top][All Lists]

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

Re: Java Error xlsread

From: Imran Azeezullah
Subject: Re: Java Error xlsread
Date: Tue, 31 Mar 2015 11:48:03 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0a2

On 30/03/15 17:01, adrianc852 wrote:

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
   JAVA_HOME should usually be set such that either:
   (on *nix:)
     <JAVA_HOME>/jre/lib/<arch>/client/ contains (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

reply via email to

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