[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overhaul of Java auto-detection
From: |
Ben Abbott |
Subject: |
Re: Overhaul of Java auto-detection |
Date: |
Mon, 10 Dec 2012 18:42:10 -0500 |
On Dec 10, 2012, at 4:20 PM, Rik wrote:
> 12/10/12
>
> All,
>
> I just pushed a changeset which significantly changes (improves?) the way
> Java is detected if JAVA_HOME has not been set
> (http://hg.savannah.gnu.org/hgweb/octave/rev/56239ff815a3). There are
> likely to be kinks which need working out and I particularly need feedback
> from Mac OS X systems. Despite all those caveats, I think this is a much
> better strategy for detection than having a laundry list of directories to
> check for each operating system and distribution.
>
> --Rik
Hi Rik,
Definitely broke builing on MacOS X.
Prior to your change, the Java stuff was configured as ....
Java home: /System/Library/Frameworks/JavaVM.framework/Home
Java arch:
/System/Library/Frameworks/JavaVM.framework/Libraries/libjvm_compat.dylib
Java CPPFLAGS:
-I/System/Library/Frameworks/JavaVM.framework/Home/include
Java libraries: -framework JavaVM
"Java home" is a symbolic link.
$ ls -l /System/Library/Frameworks/JavaVM.framework/Home
lrwxr-xr-x 1 root wheel 24 Oct 21 20:46
/System/Library/Frameworks/JavaVM.framework/Home -> Versions/CurrentJDK/Home
With your change, I get ....
Java home:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Java JVM path:
Java CPPFLAGS:
Java libraries:
$ ls -l /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
total 8
drwxr-xr-x 41 root wheel 1394 Oct 21 21:08 bin
lrwxr-xr-x 1 root wheel 3 Oct 21 20:46 bundle -> ../
drwxr-xr-x 42 root wheel 1428 Oct 21 21:08 lib
drwxr-xr-x 41 root wheel 1394 Oct 21 21:08 man
Ben
- Overhaul of Java auto-detection, Rik, 2012/12/10
- Re: Overhaul of Java auto-detection, Philip Nienhuis, 2012/12/10
- Re: Overhaul of Java auto-detection,
Ben Abbott <=
- Re: Overhaul of Java auto-detection, Rik, 2012/12/10
- Re: Overhaul of Java auto-detection, Ben Abbott, 2012/12/10
- Re: Overhaul of Java auto-detection, Alexander Hansen, 2012/12/10
- Re: Overhaul of Java auto-detection, Rik, 2012/12/11
- Re: Overhaul of Java auto-detection, Alexander Hansen, 2012/12/11
- Re: Overhaul of Java auto-detection, Rik, 2012/12/11
- Re: Overhaul of Java auto-detection, Ben Abbott, 2012/12/11
- Re: Overhaul of Java auto-detection, Rik, 2012/12/11
- Re: Overhaul of Java auto-detection, Ben Abbott, 2012/12/11
- Re: Overhaul of Java auto-detection, John W. Eaton, 2012/12/11