Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Debugging java class called from Matlab
Date: Mon, 31 Aug 2009 08:06:00 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 48
Message-ID: <h7g098$cr1$1@fred.mathworks.com>
References: <fb1gnk$5o4$1@fred.mathworks.com> <gap9ke$gne$1@fred.mathworks.com> <gbglel$g7r$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251705960 13153 172.30.248.35 (31 Aug 2009 08:06:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 31 Aug 2009 08:06:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1950029
Xref: news.mathworks.com comp.soft-sys.matlab:567191


"Andy Johnson" <ajohnson@mathworks.com> wrote in message <gbglel$g7r$1@fred.mathworks.com>...
> Try the following in java.opts:
> -agentlib:jdwp=transport=dt_socket,address=5678,server=y,suspend=n
> 
> The -Xrunjdwp option is deprecated.
> 
> -AndyJ
> 
> "Kenneth " <nomail@email.com> wrote in message 
> news:gap9ke$gne$1@fred.mathworks.com...
> > 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. 
> 
Does anyone know how to debug java classes in Eclipse through Matlab in Vista 64 bit enviornment?

Subha Fernando