|
In article <j4n080$nha$1@newscl01ah.mathworks.com>,
"Michael Levin" <mlevin@forsyth.org> wrote:
> 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?
One solution is to use Automator to both run a shell script and then
also start Matlab. For more info, do a search on:
automator run shell script
Cheers,
Ken Prager
|