Why do I get a java exception when I click the link in an error message?

I have some MATLAB code that generates an error in the Command Window, and when I click on the hyperlink in the error message to go to tha offending line in the code I get an java exception.
The java exception starts with the line:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: The given File must have an absolute path: C:\Windows\system32

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 24 Apr. 2013
This bug has been fixed in Release 2013a (R2013a). For previous product releases, read below for any possible workarounds:
This java exception occurs in MATLAB 7.13 (R2011b) if the code that generates an error is on a path whose length is greater than or equal to 153 characters, and that contains a comma at or beyond the 106th position in the path.
As a workaround for this issue, you can either
1. move the code to a different directory that does not meet these conditions
or
2. remove the commas from path.

Weitere Antworten (0)

Kategorien

Produkte

Version

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by