Error when starting the Matlab R2015a

5 views (last 30 days)
Hi there,
I got this error when opening Matlab!! I do not know what to do? all functions don't response to me!!
Can you help me to solve this issue, please? I attached a copy of the error message.
Regards,
Yasser
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\wavelet\wavedemo
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\matlab\webcam
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\matlab\external\interfaces\webservices\restful
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\matlab\external\interfaces
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\matlab\external\interfaces\webservices
Warning: Name is nonexistent or not a directory: /Applications/MATLAB_R2015a.app\toolbox\matlab\external\interfaces\webservices\wsdl
Undefined function or variable 'ispc'.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
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:UndefinedFunction
Undefined function 'usejava' for input arguments of type 'char'.
> In matlabrc (line 118)
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function or variable 'ismac'.
> In hgrc (line 145)
In matlabrc (line 148)
Warning: Failed to add default profiler filters.
> In matlabrc (line 157)
Academic License
_Undefined function or variable 'usejava'.
Error in matlabrc (line 187)
if ~(ismcc || isdeployed || feature('isdmlworker')) && usejava('jvm')
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException_
at com.mathworks.mlwidgets.graphics.ModelStateFactory.createNoSelectionModelState(ModelStateFactory.java:251)
at com.mathworks.mlwidgets.graphics.PlotToolSetFactory$3.parseComplete(PlotToolSetFactory.java:123)
at com.mathworks.mlwidgets.graphics.ModelStateFactory$ProductInfoListener$1$1.run(ModelStateFactory.java:1032)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Accepted Answer

Hannes Daepp
Hannes Daepp on 14 Feb 2017
Hi Yasser -- it looks like you may be encountering the issue described in this MATLAB Answers post:
Please refer to that post for solutions and next steps.
  2 Comments
Yasser Alzamil
Yasser Alzamil on 17 Feb 2017
Thank you All, I did set the path for the default and works fine.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!