What is the cause of "Could not initialize class com.mathworks.hg.util.HGPeerQueue" java error?
Mostra commenti meno recenti
Hello, I am experiencing a major breakdown of Matlab's functionality due to a series of errors, which relate to a group of java.lang.NoClassDefFoundError errors.
They occur in following situations (found so far):
1. on opening .fig files
> Error using textwrap (line 82)
> Java exception occurred: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.hg.util.HGPeerQueue
> at com.mathworks.hg.util.HGUtils.invokeLater(HGUtils.java:59)
> at com.mathworks.hg.peer.FigurePeer.causeExpose(FigurePeer.java:2948)
> Error in msgbox (line 273)
[WrapString,NewMsgTxtPos]=textwrap(MsgHandle,BodyTextString,75);
> Error in errordlg (line 47)
handle = msgbox(ErrorStringCell,DlgName,'error',Replace);
> Error in uiopen (line 187) errordlg(ex.getReport('basic', 'hyperlinks', 'off'));
2. on opening .xls files from directory
(same error mssg as in point 1)
3. on creating a figure
>> figure
> Java exception occurred: > java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.hg.util.HGPeerQueue
> at com.mathworks.hg.util.HGUtils.invokeLater(HGUtils.java:59)
> at com.mathworks.hg.peer.FigurePeer.causeExpose(FigurePeer.java:2948)
4. on opening GUIDE
>> guide
> Error using javacomponentundoc_helper (line 112)
> Java exception occurred:
> java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.hg.util.HGPeerQueue
> at com.mathworks.hg.util.HGUtils.invokeLater(HGUtils.java:59)
> at com.mathworks.hg.peer.FigureChild.add(FigureChild.java:56)
> at com.mathworks.hg.peer.UIComponentManager.addchild(UIComponentManager.java:155)
> at com.mathworks.hg.peer.UIComponentManager.addchild(UIComponentManager.java:149)
> at com.mathworks.hg.peer.FigurePanel.addchild(FigurePanel.java:301)
> at com.mathworks.hg.peer.FigureMediator.addchild(FigureMediator.java:414)
> at com.mathworks.hg.peer.FigurePeer.addchild(FigurePeer.java:1115)
> Error in javacomponent (line 113)
> [hcomponent, hcontainer] = javacomponentundoc_helper(varargin{:});
> Error in guidetemplate (line 25)
> [jc, hc] = javacomponent(quickstartpanel, [], hDialog);
> Error in guide (line 69)
> guidetemplate;
5. on plotting
>> plot(x,y)
> Error using clo (line 79)
> Java exception occurred:
> java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.hg.util.HGPeerQueue
> at com.mathworks.hg.util.HGUtils.invokeLater(HGUtils.java:59)
> at com.mathworks.hg.peer.FigurePeer.causeExpose(FigurePeer.java:2948)
> Error in cla (line 35)
> clo(ax, extra{:});
> Error in newplot>ObserveAxesNextPlot (line 124)
> cla(ax, 'reset',hsave);
> Error in newplot (line 73)
> ax = ObserveAxesNextPlot(ax, hsave);
I am really desperate for a solution to this problem as it preventing any substantial work with Matlab.
Help greatly appreciated.
1 Commento
Jakub Kozlowski
il 22 Lug 2015
Risposte (2)
Heber Kaiser
il 23 Lug 2015
0 voti
Jakub,
I am having the same trouble, although I did not any changes to my computer. It's something about update, either Matlab or Java. I tried to use Matlab in another computer with Win7, and the problems still.
--- Win Vista, Matlab 2014a
1 Commento
Jakub Kozlowski
il 23 Lug 2015
Finley Gibson
il 14 Ago 2015
0 voti
Exact same problem here. Added no new hardware, just happened overnight.
Tried updating java, Tried a complete reinstall of Matlab,
No luck.
2 Commenti
Steven Lord
il 14 Ago 2015
Please contact Technical Support (using the Contact Us link in the upper-right corner of mathworks.com) and work with them to determine the cause of this behavior.
Jakub Kozlowski
il 16 Ago 2015
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!