/ how can i solve this problem in the command window :-

1 view (last 30 days)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.anyText(WindowsWidgetFactory.java:187) at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.getIcon(WindowsWidgetFactory.java:195) at com.apple.laf.AquaButtonUI.setThemeBorder(AquaButtonUI.java:91) at com.apple.laf.AquaButtonUI.installDefaults(AquaButtonUI.java:58) at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:71) at javax.swing.JComponent.setUI(JComponent.java:670) at javax.swing.AbstractButton.setUI(AbstractButton.java:1815) at javax.swing.JButton.updateUI(JButton.java:128) at javax.swing.AbstractButton.init(AbstractButton.java:2182) at javax.swing.JButton.<init>(JButton.java:118) at javax.swing.JButton.<init>(JButton.java:73) at com.mathworks.mwswing.MJButton.<init>(MJButton.java:71) at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.<init>(WindowsWidgetFactory.java:153) at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.<init>(WindowsWidgetFactory.java:167) at com.mathworks.widgets.WindowsWidgetFactory.createSearchAndClearButton(WindowsWidgetFactory.java:58) at com.mathworks.widgets.SearchTextField.buildDefaultComponent(SearchTextField.java:517) at com.mathworks.widgets.SearchTextField.buildComponent(SearchTextField.java:480) at com.mathworks.widgets.SearchTextField.init(SearchTextField.java:182) at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:173) at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:160) at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:122) at com.mathworks.mlwidgets.graphics.PlotPickerPanel.init(PlotPickerPanel.java:560) at com.mathworks.mlwidgets.graphics.PlotPickerPanel.<init>(PlotPickerPanel.java:84) at com.mathworks.mlwidgets.graphics.PlotPicker.createPlotPickerPanel(PlotPicker.java:152) at com.mathworks.mlwidgets.graphics.PlotPicker.utSetPlottedVars(PlotPicker.java:481) at com.mathworks.mlwidgets.graphics.PlotPicker.access$700(PlotPicker.java:23) at com.mathworks.mlwidgets.graphics.PlotPicker$PlotPickerUIUpdater.run(PlotPicker.java:587) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:685) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Accepted Answer

Arigye Wilford
Arigye Wilford on 3 Feb 2016
#java. Found a solution of the bug fix SMS page on mathwork.com. thanks
Workaround
Note: If you cannot launch MATLAB at all, please see Bug Report 1116607, "Cannot launch MATLAB 14a or earlier on OS X 10.10 Yosemite".
For MATLAB R2011a through R2014a only.
To install this patch, you need the name and password of an account with Administrator privileges.
Download the appropriate patch file for the version of MATLAB you wish to patch. Look for the file in your Downloads folder, the Desktop, or wherever your Web browser saves downloaded files. If your Web browser did not unzip the patch file for you, double-click the file in the Finder to unzip it. Double-click the .dmg file to mount the disk image. At the top level of the mounted disk image is an application such as R2014a_patch_1098655.app. Double-click to launch it. Select your MATLAB installation. Select the root folder of the install, for example, MATLAB_R2014a.app. Enter the name and password of an account with Administrator privileges. New Java class files will be installed in the java/patch/com/mathworks/widgets folder of your MATLAB installation. When the upgrade is complete, you can launch MATLAB. Fix
This bug was fixed as of R2014b(8.4).
If you have a current subscription to MathWorks Software Maintenance Service (SMS), you can download product updates. If not, learn more about MathWorks SMS.

More Answers (1)

Walter Roberson
Walter Roberson on 3 Feb 2016
You are using an older version of MATLAB on Yosemite or El Capitan. You need a patch to do that.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!