octave-maintainers
[Top][All Lists]
Advanced

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

Re: Overhaul of Java auto-detection


From: Rik
Subject: Re: Overhaul of Java auto-detection
Date: Mon, 10 Dec 2012 16:34:09 -0800

On 12/10/2012 03:42 PM, Ben Abbott wrote:
>
> 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

Ben,

Could you poke around in the directory

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk

and let me know about the following.

The location of 'java', 'javac', and 'jar'.

The location of libjvm and its name.

The location of jni.h

From the top-level directory try

find . -name 'java'
find . -name 'javac'
find . -name 'jar'
find . -name '*libjvm*'
find . -name 'jni.h'

--Rik



reply via email to

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