On Fri, Apr 27, 2012 at 10:59 AM, PhilipNienhuis [via Octave] <ml-node+s1599824n459227...@n4.nabble.com> wrote: > Then for downloading the java package, with the file saved under a more > specific folder and the correct path added, I called 'pkg install -verbose > java-1.2.8.tar.gz' and got the following: > > error: feval: function `java_exit' not found > error: feval: function `java_exit' not found > error: feval: function `java_exit' not found > ./configure: line 3257: test: too many arguments > configure: WARNING: this package requires at least Java-1.5 > mkdir (/var/tmp/oct-8pbW5P) > untar (java-1.2.8.tar.gz, /var/tmp/oct-8pbW5P) > 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/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 > retrieving compile and link flags from > /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 > checking for F77_FUNC... yes > checking for octave... > /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0 > checking for OCTAVE_VERSION in Octave... 3.4.0 > checking for octave_config_info('canonical_host_type') in Octave... > x86_64-apple-darwin10.7.3 > 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_31 > configure: creating ./config.status > config.status: creating Makeconf > > "$prefix" is /Users/timothyfield/octave/java-1.2.8 > "$exec_prefix" is ${prefix} > > octave commands will install into the following directories: > m-files: > /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/site/m/octave-forge > oct-files: > /Applications/Octave.app/Contents/Resources/libexec/octave/3.4.0/site/oct/x86_64-apple-darwin10.7.3/octave-forge > binaries: > /Applications/Octave.app/Contents/Resources/libexec/octave/3.4.0/site/exec/x86_64-apple-darwin10.7.3 > alternatives: > m-files: > /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/site/octave-forge-alternatives/m > oct-files: > /Applications/Octave.app/Contents/Resources/libexec/octave/3.4.0/site/octave-forge-alternatives/oct/x86_64-apple-darwin10.7.3 > > 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.app/Contents/Resources/bin/octave-3.4.0 > (version 3.4.0) > mkoctfile: > /Applications/Octave.app/Contents/Resources/bin/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 > warning: function /Users/timothyfield/octave/java-1.2.8/dlgtest.m shadows a > core library function > warning: function /Users/timothyfield/octave/java-1.2.8/errordlg.m shadows a > core library function > : > <snip> > : > warning: function /Users/timothyfield/octave/java-1.2.8/warndlg.m shadows a > core library function > > It looks like everything ran fine until it couldn't find the JDK. 'Java > support not compiled' (just before > > No, a bit higher up it says: > " java: Java Development Kit not found" > which usually means that JAVA_HOME wasn't set properly.
I've never used or tested the java package under OS X, the Java detection code in the configure script was donated by a OS X user. The best is to look at it (starts at line 322): http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/java/src/configure.base?revision=8029&view=markup So basically under OS X, it expects java to be located at /System/Library/Frameworks/JavaVM.framework But in this case, I think the most important message is the warning about the Java version that is needed to be >= 1.5. Clearly the configure test fails to detect your java version correctly. Michael. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev