Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to set environment variable when running Matlab from Finder on Mac?
Replies: 2   Last Post: Sep 19, 2011 11:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Michael Levin

Posts: 52
Registered: 9/13/06
how to set environment variable when running Matlab from Finder on Mac?
Posted: Sep 13, 2011 3:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I start Matlab from the Finder on a Mac, not from a terminal shell. I need to have an environment variable set because of a bug that makes my R2007 Matlab not work with the new Java. What I need is

setenv DYLD_LIBRARY_PATH "/System/Library/Frameworks/JavaVM.framework/Libraries"

after which it works fine, if I start it from the Terminal. But I don't want to have to go to the terminal to start it - I want to start it from an icon in the Finder. Where can I place this setenv so that it gets executed as the Matlab starts up?

thanks,

Mike



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.