Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Debugging java class called from Matlab
Date: Tue, 16 Sep 2008 21:49:02 +0000 (UTC)
Organization: Argonne National Laboratory
Lines: 26
Message-ID: <gap9ke$gne$1@fred.mathworks.com>
References: <fb1gnk$5o4$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 1221601742 17134 172.30.248.37 (16 Sep 2008 21:49:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 16 Sep 2008 21:49:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1452524
Xref: news.mathworks.com comp.soft-sys.matlab:490538


This seems like a good idea, but it didn't work for me.  I believe I followed the instructions, but when I run the launcher in Eclipse, I get a dialog saying:

Failure to connect to remote VM.  Connection refused.
Connection refused: connect

This happens whether Matlab is started before the launcher or after.

I made the file java.opts in C:\Program Files\Matlab\2007a\bin\win32.

Possible reasons:

1. I tried putting the opts on one line or on multiple lines as in the forum message.  I also tried with and without -Djava.compiler=NONE. (So should it be one line or multiple lines? I can't find any good documentation on java.opts.)  This is my current choice:

-Xdebug
-Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n
-Djava.compiler=NONE

2. I am using 7.4.0.287 (R2007a).  The forum says MATLAB 7R14.  (I don't understand this numbering.)  Is my version too old?

3. I am using Eclipse 3.3.2.

4. I have tried several different ports. 1044 is not currently in use on my machine, however.

Any help would be appreciated.  I've run out of ideas, and I can't find this documented anywhere else.

Thanks.