How to get past cd error on starting GUIDE?

2 views (last 30 days)
Frustration! All the posts I can find on GUIDE start by selecting from GUIDE Quick Start/Create New GUI. But when I select “Blank GUI (Default) I get the following error:
Error using cd Cannot CD to C:\Users\fackerman\AppData\Local\Temp;c:\Program Files\Java\jdk1.6.0_21\bin (Directory access failure).
Error in tempdir (line 30) curr_dir = cd(tmp_dir);
Error in tempname (line 17) dirname = tempdir;
Error in guidetemplate/processDialogResult (line 159) temp = tempname;
Error in guidetemplate/dialogCallback (line 103) processDialogResult(quickstartpanel);
Warning: Error occurred while evaluating listener callback.
From cmd I can cd to both of these directories. What’s the problem? How do I fix it?

Accepted Answer

Steven Lord
Steven Lord on 11 Aug 2015
It looks like the TEMPDIR function is not returning a single directory name, but two.
Have you created your own TEMPDIR function that is shadowing the one included with MATLAB? If so, rename it.
Have you defined either of the environment variables TEMP or TMP? If so, undefine them, restart MATLAB (cleaning TEMPDIR may work, but better to make sure all of MATLAB recognizes the changes) and try again.
  1 Comment
Frank
Frank on 11 Aug 2015
I use a naming convention that nearly guarantees that I never conflict with a MATLAB name, but TEMP and TMP were in my environment variables list and when I removed them I can now get the GUIDE empty template. Hopefully removing these didn’t break anything else.

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!