[Top][All Lists]

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

Re: xlswrite , io package and octave 3.2.4

From: Mathematician
Subject: Re: xlswrite , io package and octave 3.2.4
Date: Thu, 1 Sep 2011 08:24:02 +0000 (UTC)
User-agent: Loom/3.14 (

Philip Nienhuis <pr.nienhuis <at>> writes:

> First of all, you'll also have to download & install the Java package
> (currently at 1.2.7 although 1.2.8 is ready for release) - this is vital for
> spreadsheet I/O support. Inside the java-.tar.gz file there's a nice .pdf
> manual in the /doc subdir, please read it, it'll save you a lot of problems.
> In a nutshell, you'll need to have a Java SDK installed (not just a JRE) to
> be able to get the Java package compiled. Once you got a SDK, you'd need to
> specify the JAVA_HOME environment setting to point to the JVM (inside
> Octave, do:  setenv ("JAVA_HOME", "/path/to/java/jvm") ). On Linux it is
> usually somewhere in /usr/lib/jvm/....  When that's ready do   pkg install
> -verbose -auto java-.tar.gz   (+ keep fingers crossed)

Hi Philip,

I'm having trouble getting the Java 1.2.8 package installed...

*) I'm running Octave 3.4.0 on Mac OS X 10.5.8 (installed via .dmg).
*) I'm sure I have Mac JRE 1.6 and JDK 1.6 (checked using command "ls -la 
*) When I run "pkg install -verbose -auto java-.tar.gz" I get the following 
output, which tells me JDK is not "there" (note the line that says 
"Java Development Kit not found" at the bottom):


octave-3.4.0:5> pkg install -verbose -auto Downloads/java-1.2.8.tar.gz
./configure: line 3257: test: too many arguments
configure: WARNING: this package requires at least Java-1.5
mkdir (/var/tmp/oct-T5lDnx)
untar (Downloads/java-1.2.8.tar.gz, /var/tmp/oct-T5lDnx)
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking for mkoctfile... /Applications/
retrieving compile and link flags from /Applications/
checking for F77_FUNC... yes
checking for octave... /Applications/
checking for OCTAVE_VERSION in Octave... 3.4.0
checking for octave_config_info('canonical_host_type') in Octave... 
checking for octave_config_info('SHLEXT') in Octave... dylib
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking for java... java
checking for javac... javac
checking for jar... jar
checking for Java version... 1.6.0_26
configure: creating ./config.status
config.status: creating Makeconf
  "$prefix" is /Users/name/octave/java-1.2.8
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /Applications/
   oct-files: /Applications/
   binaries:  /Applications/
   m-files:   /Applications/
   oct-files: /Applications/

shell commands will install into the following directories:
   binaries:  ${exec_prefix}/bin
   man pages: ${datarootdir}/man
   libraries: ${exec_prefix}/lib
   headers:   ${prefix}/include

octave-forge is configured with
   octave:      /Applications/
octave-3.4.0 (version 3.4.0)
   mkoctfile:   /Applications/
mkoctfile-3.4.0 for Octave 0
   java:        Java Development Kit not found

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

Java support not compiled


*) Needless to say, the "javamem" command brings up the following error:

"octave-3.4.0:6> javamem
error: `java_invoke' undefined near line 65 column 8"

What is a humble man to do in this case?

Many thanks!

reply via email to

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