Do not have sufficient access permissions for the Matlab application folder to change the file /Applicati​ons/MATLAB​_R2010a.ap​p/toolbox/​local/clas​spath.txt

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

답변 (4개)

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.
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.
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

If it is owned by root, then you would need root privileges to chmod it, such as by using sudo chmod

댓글을 달려면 로그인하십시오.

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

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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Installation and Operational Settings에 대해 자세히 알아보기

제품

질문:

2011년 6월 16일

편집:

2013년 10월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by