Matlab desktop class failure

I am running Matlab R2012b on my Mac OSX 10.6.8. I have Java 1.6.0_65-b14-462-10M4609.
When I try to open Matlab, the icon will appear in my dock for a few seconds and quickly go away.
I CAN open nodesktop version of my Matlab through X11 without any problem. But when I try to open desktop version, it gives me the following error:
Fatal Error on startup: Internal Error: Failure occurs during desktop startup. Details: Failure loading desktop class.
Thank you

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 9 月 17 日

0 投票

Sounds like it could be a preferences issue. Run the attached function in nodesktop mode to refresh the preferences.

4 件のコメント

A
A 2014 年 9 月 17 日
Can you teach me exactly what to do? I am not really familiar with navigating in nodesktop mode, and I am not sure exactly where to tweak in preferences
Thanks again
A
A 2014 年 9 月 17 日
編集済み: A 2014 年 9 月 17 日
Oh wait, didn't see the attached code... trying it now
I get the following errors running the code:
Error using figure Error using figure UIJ_AreThereWindowShowsPending - timeout waiting for window to show up
Error in dialog (line 88) hDialog = figure('ButtonDownFcn' ,btndown , ...
Error in msgbox (line 214) figureHandle=dialog( ...
Error in errordlg (line 53) handle = msgbox(ErrorStringCell,DlgName,'error',Replace);
Error in moveprefdir (line 45) errordlg(msg,'Move Failed','modal');
A
A 2014 年 9 月 17 日
I am also getting these errors when starting Matlab in nodesktop mode:
Unable to initialize com.mathworks.mlwidgets.html.HTMLPrefs Unable to initialize com.mathworks.mwswing.MJStartup Unable to initialize com.mathworks.toolstrip.plaf.TSLookAndFeel
To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com.
Warning: Initializing Java preferences failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:Java:GenericException Java exception occurred: java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator at com.mathworks.util.osgi.ClasspathOSGiManager.<init>(ClasspathOSGiManager.java:35) at com.mathworks.util.osgi.ClasspathOSGiManager.getInstance(ClasspathOSGiManager.java:30) at com.mathworks.mde.editor.debug.DebuggerInstaller.init(DebuggerInstaller.java:30) Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 3 more > In matlabrc at 110 Warning: Function /Users/sackleroutsidefellow/Desktop/mvpa/afni_matlab/isrow.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. > In path at 110 In addpath at 87 In mvpa_add_paths>myaddpath at 41 In mvpa_add_paths at 33 In startup at 3 In matlabrc at 202
Thank you
Sean de Wolski
Sean de Wolski 2014 年 9 月 17 日
contact technical support.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

A
A
2014 年 9 月 17 日

コメント済み:

2014 年 9 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by