Forwarding to octave-dev mailing list. I'm not a MAC user so it's difficult for me to debug your problem. Hopefully, someone on the list may be able to assist.
Did you try without specifying JAVA_HOME at all (leaving it blank)? For reference, the code for java detection is the following: http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/java/src/configure.base?revision=8029&view=markup (starting at line 336). Michael. ---------- Forwarded message ---------- From: Jason Tilley <[email protected]> Date: Wed, Aug 17, 2011 at 1:49 PM Subject: Re: [OctDev] java package not working To: Michael Goffioul <[email protected]> How do I post this on the mailing list? I've (mainly) tried the two following JAVA_HOME locations… export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home export JAVA_HOME=/opt/local/share/java/openjdk6 My home directory to the Mac installed JDK (.../JavaVM.framework/Home) doesn't seem to have a jre folder. A lib folder does exit in it though. Folders it contains….audio, cmm, deploy (link), endorsed, ext, fonts, im, images, management, security, service tag, and zi. The macports installed OpenJDK install contains the folder ire/lib with the following folders… amd64, cmm, ext, I'm, images, management, security and zi. Not sure if java_home is correct in either case, but these are my best guesses. Thanks. Jason On Aug 17, 2011, at 3:26 AM, Michael Goffioul wrote: > What arch directory do you have in $JAVA_HOME/jre/lib/ ? > > Michael. > > On Tue, Aug 16, 2011 at 7:14 PM, Jason Tilley <[email protected]> wrote: >> Thanks. My current $arch is OS X Lion on MPB 13" Sandy Bridge so I guess I >> should use mac. I don't seem to have the same directory tree as most it >> seems. I am new to macs and don't know exactly what I'm doing. I have been >> trying these two paths mostly, but I've tried other directories. Nothing has >> worked. >> >> export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home >> export JAVA_HOME=/opt/local/share/java/openjdk6 >> >> Both will return the correct version if I type java -version in my terminal. >> I can give you the the output of JavaConfig.plist if that would help. I >> will try your suggestions. Thanks for the help. >> >> Jason >> >> On Aug 15, 2011, at 7:37 AM, Michael Goffioul wrote: >> >>> When setting JAVA_HOME, you should have a directory like: >>> $JAVA_HOME/jre/lib/$ARCH, with $ARCH being something like >>> i386, mac, amd64... What is $ARCH in your case? >>> >>> Michael. >>> >>> >>> On Mon, Aug 15, 2011 at 12:00 AM, JDTilley <[email protected]> wrote: >>>> I am trying to install the java package in Octave. The end of the >>>> configuration is: >>>> >>>> octave-forge is configured with >>>> octave: octave (version 3.2.4) >>>> mkoctfile: mkoctfile for Octave 4 >>>> java: Java Development Kit not found >>>> >>>> find . -name NOINSTALL -print # shows which toolboxes won't be installed >>>> >>>> Java support not compiled >>>> >>>> I have tried setting JAVA_HOME to the native JDK as well as to >>>> an OpenJDK6 install on my Sandy Bridge MBP with OS X Lion 10.7 >>>> and Xcode 4.1. java -version returns the proper versions depending >>>> on the JAVA_HOME dir I set. I do end up with it showing up via pkg >>>> list, but nothing works. Could somebody help me please? >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> FREE DOWNLOAD - uberSVN with Social Coding for Subversion. >>>> Subversion made easy with a complete admin console. Easy >>>> to use, easy to manage, easy to install, easy to extend. >>>> Get a Free download of the new open ALM Subversion platform now. >>>> http://p.sf.net/sfu/wandisco-dev2dev >>>> _______________________________________________ >>>> Octave-dev mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/octave-dev >>>> >> >> ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
