On 7/6/12 2:26 PM, Philip Nienhuis wrote: > Alexander Hansen wrote: >> On 7/6/12 7:57 AM, Philip Nienhuis wrote: >> >> <snip> >> >>> I wouldn't know how to check on Mac OSX, but AFAIK there are no success >>> stories anyway for recent versions of the Java package on OSX. (IIRC on >>> FINK or MacPorts I saw a very old Java package version, like 1.2.4 or >>> so.) >> >> 1.2.5 in Fink, and only for Octave-3.0.5. >> >> The current version (1.2.8) doesn't function properly on OS X--it builds >> (with patching) but presents runtime failures: >> >> cf. http://sourceforge.net/mailarchive/message.php?msg_id=28468472 >> >> Unfortunately, I don't know quite how to fix it. > > Yeah, I read that a while ago. > > Anyway, would you be able to tell if given a proper JAVA_HOME setting, > pre_install.m's magic would correctly detect it? and arror out if not > set properly? > Because in the future, when the Java pkg can be made to compile on OSX, > at least that little JDK-finding hurdle would have been eliminated > beforehand. > > Philip
Sure. With JAVA_HOME unset, I get: octave:1> pre_install Error while trying to install Java package: environment variable 'JAVA_HOME' has not been set. use 'setenv ("JAVA_HOME", "/full/path/to/javaJDK")' 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 Windows:) <JAVA_HOME>/jre/lib/<arch>/ contains a file jvm.cfg (<arch> depends on your system hardware, can be i386, x86_64, alpha, arm, ...) error: Aborting pkg install error: called from: error: /Users/hansen/Desktop/pre_install.m at line 78, column 5 So that looks to be OK. But with JAVA_HOME set to what my OS X version calls for it errors out for a different reason. $ /usr/libexec/java_home /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home $ env JAVA_HOME=`/usr/libexec/java_home` octave ... octave:1> getenv('JAVA_HOME') ans = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home octave:2> pre_install 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 Windows:) <JAVA_HOME>/jre/lib/<arch>/ contains a file jvm.cfg (<arch> depends on your system hardware, can be i386, x86_64, alpha, arm, ...) error: Aborting pkg install There's no jre/ directory within my $JAVA_HOME. Since the Java package doesn't work on OS X right now that's probably OK. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ 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