When I choose "File->Print" from a desktop tool such as the command window or the Editor/Debugger window, printing fails and I receive the following Java exception:
java.lang.IllegalArgumentException: services must contain defaultService at javax.print.ServiceUI.printDialog(Unknown Source) at com.mathworks.mde.cmdwin.XCmdWndView.print(XCmdWndView.java:1450) at com.mathworks.mde.cmdwin.CmdWinEditorKit$PrintAction.actionPerformed(Cmd WinEditorKit.java:1277) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(U nknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) <snip>
Best Answer