
31Introduction to Java in MATLAB
®
1. Create an Eclipse project (we must use JDK 1.5 or above); to include the source code
of the Java classes, remember the folder where you put the output classes when you
dened the project.
2. Start MATLAB with the –jdb command-line startup option (or on pre-R14 MATLAB
releases, use the java.opts modication that was explained above).
3. In MATLAB, add the folder of the output classes from step 1 into MATLAB’s java-
classpath. We can use either static or dynamic classpath here.
4. In Eclipse, add a “Remote Java Application” debug conguration: Set Connection
Type “Standard (Socket Attach)”, Host ...