Why do MATLAB 6.5.1 (R13SP1) and earlier versions fail to launch after creating a java.opts file to debug my Java application?

I added the following lines of code to my java.opts file:
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n
Then when I launched MATLAB, the splash screen appeared, but nothing else happened.

 Accepted Answer

The usual cause for this behavior in the 1.3.1 JVM and earlier is that the JVM cannot locate jdwp.dll, which is required for debugging. You must put the location of jdwp.dll on your system path so that the runjdwp statement can find it. The location of the jdwp.dl for the JVM shipped with MATLAB is:
$MATLAB\sys\java\jre\win32\jre\bin
where $MATLAB is your root MATLAB directory.
To add this directory to your system path, follow the link under related solutions.

More Answers (0)

Categories

Products

Release

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!