更新了mac的操做系統到El capitan, 結果發現Matlab打不開了,每次都彈出一個Java error的窗口。現實以下內容java
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:113) at com.apple.laf.AquaButtonUI.installDefaults(AquaButtonUI.java:80) at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:88) at javax.swing.JComponent.setUI(JComponent.java:664) at javax.swing.AbstractButton.setUI(AbstractButton.java:1807) at javax.swing.JButton.updateUI(JButton.java:146) at javax.swing.AbstractButton.init(AbstractButton.java:2172) at javax.swing.JButton.<init>(JButton.java:136) . . .
覺得是java的版本問題,因而想盡各類辦法去下載安裝Java六、7,卻都不work~~~~~api
終於發現有官方的補丁,能夠在這裏下載app
http://www.mathworks.com/support/bugreports/1098655操作系統
只要下載,打開,按照指令操做就好,很是簡便!code
如今matlab從新能用了!blog
Refget
https://www.mathworks.com/matlabcentral/newsreader/view_thread/336387it