octave-maintainers
[Top][All Lists]
Advanced

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

Re: heads-up on MacOS X & Java


From: Ben Abbott
Subject: Re: heads-up on MacOS X & Java
Date: Fri, 06 Oct 2017 20:43:31 -0400

> On Oct 6, 2017, at 4:35 PM, Sebastian Schöps <address@hidden> wrote:
> 
>> The patch doesn’t apply for me. Perhaps because there is no context info and 
>> confgure.ac has changed since you attached it.
> 
> Currently java on macOS is differently handled than on other platforms. This 
> was necessary in former times but now it's rather harmful. My patch just 
> disables this if statement. 
> 
> You can manually change in file "libinterp/octave-value/ov-java.cc" the line
> "#if ! defined (__APPLE__) && ! defined (__MACH__)" into "#if 1". 
> Additionally the statement "-framework JavaVM" must be removed from 
> "configure.ac".
> 
>> Is there a convenient test for Java?
> 
> just calling "javaclasspath" should tell you whether it works. I recommend 
> uninstalling Java 1.6 before these tests to actually see whether it works. 
> 
> Sebastian

Hi Sebastian,

The javaclasspath() returned an empty cell, so I expect it wasn’t working. I’ll 
put in more time debugging.

In the meantime, I’ve attempted to change your changset by manually making the 
changes and then “hg diff”.

It is attached. Can you verify I got it correct?

Ben

Attachment: octave_devel_mac_java3.patch
Description: Binary data


reply via email to

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