Why do I receive a java.lang.IllegalArgumentException error when I print in MATLAB 7.0 (R14)?
Show older comments
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>
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!