Do not have sufficient access permissions for the Matlab application folder to change the file /Applications/MATLAB_R2010a.app/toolbox/local/classpath.txt
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello
One of our staff is trying to install the free Matlab psychtoolbox into his installation of Matlab R2010a (32bit) under Mac OS X. His macOS X account is an administrator but he gets the following error message when attempting to install the toolbox:
"Either you have a very old Matlab version which does not support JAVA or, most likely, you do not have sufficient access permissions for the Matlab application folder to change the file /Applications/MATLAB_R2010a.app/toolbox/local/classpath.txt . Please ask the system administrator to enable write-access to that file and repeat the update procedure. Alternatively, ask the administrator to add the following line: /Applications/Psychtoolbox/PsychJava to the file: /Applications/MATLAB_R2010a.app/toolbox/local/classpath.txt
If you skip this step, Psychtoolbox will still be mostly functional, with exception of the Java-based commands ListenChar, CharAvail, GetChar and FlushEvents on Linux, MacOS-X and M$-Windows in Java mode. For more info see 'help PsychJavaTrouble'."
Any ideas what the issue may be here?
We could login as the root user to do this but normally this isn't necessary for just adding local software such as the "psychtools" toolbox. any ieads you could give would be most helpful.
Thank you
Kind regards
David
댓글 수: 0
답변 (4개)
Walter Roberson
2011년 6월 16일
Use sudo and your favorite editor to edit the noted file and add that line.
In my OS-X experience, adding an application to /Applications requires root privileges more often than not.
댓글 수: 0
Chirag Gupta
2011년 6월 16일
Another temporary solution might be to use javaaddpath ('path to the JAR file') once MATLAB starts up.
You can even put that in the startup.m to do it automatically!
OS-X will require you to sudo as Walter suggests.
댓글 수: 0
Jason Ross
2011년 6월 16일
If you look at the permissions on that file using "ls -l", you should be able to see who can write to it. If root owns it and the permissions only allow owner to write to it, then you'll need to either become root, or chmod it. If you can become root, I'd recommend that route.
Or you can edit it using sudo, as Walter suggests.
댓글 수: 2
Walter Roberson
2011년 6월 16일
If it is owned by root, then you would need root privileges to chmod it, such as by using sudo chmod
sagar kotecha
2012년 2월 12일
Hey, may be you have to change your access permission, do as given
- Right click on classpath.txt file
- click on properties-->
- click on Security-->
- Selct current user-->
- click on Edit-->
- click on Current user-->
- Mark Full Control-->
- click apply-->
- click ok
Now try
댓글 수: 1
Walter Roberson
2012년 2월 12일
I'm on a OS-X system right now. Could you remind me how I right-click on a system with no mouse and a single-button track-pad?
Did they do a major redesign of the file information window in Lion? Mine looks like this: http://www.fileinfo.com/images/help/mac-info-window.gif
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!