Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Calling Matlab from Java
Date: Thu, 10 Sep 2009 07:07:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h8a8il$jhl$1@fred.mathworks.com>
References: <h87tev$18l$1@fred.mathworks.com> <25d774c7-0b3a-4822-88c4-82269abb04f6@x38g2000yqb.googlegroups.com> <h8a5u9$mcm$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1252566421 20021 172.30.248.37 (10 Sep 2009 07:07:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Sep 2009 07:07:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1973328
Xref: news.mathworks.com comp.soft-sys.matlab:569455


"Stephan Larws" <stephan.larws@iav.de> wrote in message <h8a5u9$mcm$1@fred.mathworks.com>...
> Rune Allnor <allnor@tele.ntnu.no> wrote in message <25d774c7-0b3a-4822-88c4-82269abb04f6@x38g2000yqb.googlegroups.com>...
> > Don't know if there are limitations, but there is at least
> > ample opportunity for trouble if you start mixing a matlab
> > GUI engine with an already existing GUI.
> > 
> > Use java for the GUI and leave the matlab engine to deal
> > with computations.
> > 
> > Rune
> 
> Hi Rune,
> 
> thank you for your fast response. Normally I would do everything like you said, but my problem is, that these matlab scripts are already existing and they include the GUI and quite a bit of other code so rewriting everything would be my last resort. And unfortunately GUI code and program code are really tangled up :(. It seems that only calling GUIs that were made with GUIDE are problematic. It would be nice to know if anyone has a similar problem.

Don't know if anybody is interested, but I think I found a solution and it has nothing to do with the GUIs. Once I started the engine with engOpen() the pwd was the matlab root directory and that caused trouble. So changing the pwd made all my problems go away ;).