Thanks for the tip. I played around with various settings for the MATLAB_JAVA enviroment variable, including using the SDK, the runtime, and the one included with R2016a. Unfortunately, MATLAB still fails to launch with an alternative Java, giving the error:
objc[21715]: Class JavaLaunchHelper is implemented in both {$MATLAB_JAVA} and /Applications/MATLAB_R2016b.app/sys/java/jre/maci64/jre/lib/jli/libjli.dylib. One of the two will be used. Which one is undefined. Interestingly, even running MATLAB under Emacs without Java (e.g. -nojvm or -noawt) still results in a crash calling std::terminate() in my system C++ library. (See crash dump). I’m out of ideas to resolve this one! From: Fritz <fritz_da_si...@hotmail.com<mailto:fritz_da_si...@hotmail.com>> Reply-To: Fritz <fritz_da_si...@hotmail.com<mailto:fritz_da_si...@hotmail.com>> Date: Tuesday, November 1, 2016 at 12:10 PM To: Deepak Cherian <dpak.cher...@gmail.com<mailto:dpak.cher...@gmail.com>> Cc: Eric Greenwood <eric.greenw...@nasa.gov<mailto:eric.greenw...@nasa.gov>>, matlab-emacs <matlab-emacs-discuss@lists.sourceforge.net<mailto:matlab-emacs-discuss@lists.sourceforge.net>> Subject: Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1 in the past i had some issues with the matlab bundled java version under debian wheezy, which i solved by using the native java version of my system. the bash script to start matlab was: #!/bin/bash export MATLAB_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/jre/ /usr/local/bin/matlab8 $1 $2 On Tue, Nov 1, 2016 at 4:11 PM, Deepak Cherian <dpak.cher...@gmail.com<mailto:dpak.cher...@gmail.com>> wrote: I have had no luck. It seems to have to do with some bug in the JAVA version bundled with MATLAB. see this StackOverflow answer: https://stackoverflow.com/questions/18794573/objc10012-class-javalaunchhelper-is-implemented-in-both-libinstrument-dyl I spent quite some time trying to get MATLAB to work with an updated JDK, but that just caused other troubles (crashes). I've gone back to 2016a which works fine. Deepak Deepak On 28 October 2016 at 17:01, Greenwood, Eric (LARC-D314) <eric.greenw...@nasa.gov<mailto:eric.greenw...@nasa.gov>> wrote: Hi all, I’ve been experiencing the same issue with Matlab R2016b on 10.10. This issue occurs when launching R2016b from within any version of Emacs. As Cumhur reported, all previous versions of Matlab seem to work fine. It doesn’t matter how Matlab is launched from within Emacs; as such, this isn’t really a matlab-emacs mode issue, but I’m hopeful someone else will have found a solution! Best Regards, Eric Greenwood -----Original Message----- Hi, thanks for the great matlab emacs, I have been using since R2011a all the way to R2016a. I’ve recently updated to Matlab R2016b, and I get a segfault, sometimes accompanied with the message below (and sometimes not). objc[761]: Class JavaLaunchHelper is implemented in both /Applications/MATLAB_R2016b.app/sys/java/jre/maci64/jre/bin/java and /Applications/MATLAB_R2016b.app/sys/java/jre/maci64/jre/lib/jli/libjli.dyli b. One of the two will be used. Which one is undefined. M-Shell segmentation fault: 11 I can launch Matlab R2016b fine from the command line. Does anybody else get this? Any hints to avoid? ATM, I am keeping both R2016a (works with emacs matlab) and (works as a stand alone). Best wishes — Cumhur ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET<http://ASP.NET> CLI. Get your free copy! http://sdm.link/telerik _______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net<mailto:Matlab-emacs-discuss@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net<mailto:Matlab-emacs-discuss@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss
matlab_crash_dump.21866-1
Description: matlab_crash_dump.21866-1
------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss