PTB Java Classpath error on Mac

I'm running PTB on a Mac, OS 10.6.8, with Matlab R2010a. I have been running an older PTB version (i.e., installed maybe back in Feb 2011) for a while. Today, I decided to update. When I did it, I got the java classpath error (the one that suggests "help PsychJavaTrouble" to solve it. But I checked, and I already have the appropriate line (/Applications/Psychtoolbox/PsychJava) in my classpath.txt file, and it's writable (as is the directory). None of the other errors seem to fit for me. Any ideas?
--- In psychtoolbox@yahoogroups.com, "matadasm" <matadasm@...> wrote:
>
> I'm running PTB on a Mac, OS 10.6.8, with Matlab R2010a. I have been running an older PTB version (i.e., installed maybe back in Feb 2011) for a while. Today, I decided to update. When I did it, I got the java classpath error (the one that suggests "help PsychJavaTrouble" to solve it. But I checked, and I already have the appropriate line (/Applications/Psychtoolbox/PsychJava) in my classpath.txt file, and it's writable (as is the directory). None of the other errors seem to fit for me. Any ideas?
>

No. Does PsychJavaTrouble() temporarily fix the problem? Then it is some classpath problem. If calling PsychJavaTrouble() doesn't fix the problem, something else is broken on your system. Maybe delete the PsychJava subfolder and run UpdatePsychtoolbox again, just to make sure you don't have some bad download or corrupted files?

-mario
OK, I should be more clear. I don't actually observe a problem - that is, I can run my code fine. I do use ListenChar, though, so I wanted to make sure I did the right thing here. I deleted the entire PTB installation, and reinstalled, and this still happened. So no corrupted files or anything. How would I test if PsychJavaTrouble() fixed the problem? That is, I can call it, and it would add that to my class path, but is there something I do after to test that it was really added? Because my PTB code would work either way.

Matt

--- In psychtoolbox@yahoogroups.com, "Mario" <mario.kleiner@...> wrote:
>
>
>
>
>
> --- In psychtoolbox@yahoogroups.com, "matadasm" <matadasm@> wrote:
> >
> > I'm running PTB on a Mac, OS 10.6.8, with Matlab R2010a. I have been running an older PTB version (i.e., installed maybe back in Feb 2011) for a while. Today, I decided to update. When I did it, I got the java classpath error (the one that suggests "help PsychJavaTrouble" to solve it. But I checked, and I already have the appropriate line (/Applications/Psychtoolbox/PsychJava) in my classpath.txt file, and it's writable (as is the directory). None of the other errors seem to fit for me. Any ideas?
> >
>
> No. Does PsychJavaTrouble() temporarily fix the problem? Then it is some classpath problem. If calling PsychJavaTrouble() doesn't fix the problem, something else is broken on your system. Maybe delete the PsychJava subfolder and run UpdatePsychtoolbox again, just to make sure you don't have some bad download or corrupted files?
>
> -mario
>
--- In psychtoolbox@yahoogroups.com, "matadasm" <matadasm@...> wrote:
>
> OK, I should be more clear. I don't actually observe a problem - that is, I can run my code fine. I do use ListenChar, though, so I wanted to make sure I did the right thing here. I deleted the entire PTB installation, and reinstalled, and this still happened. So no corrupted files or anything. How would I test if PsychJavaTrouble() fixed the problem? That is, I can call it, and it would add that to my class path, but is there something I do after to test that it was really added? Because my PTB code would work either way.
>

If GetChar, ListenChar, CharAvail work, then PsychJavaTrouble has temporarily fixed the problem. I don't know why Matlab wouldn't pick up the PsychJava folder automatically if it is properly added to the classpath.txt file. Maybe a Matlab bug?

-mario

> Matt
>
> --- In psychtoolbox@yahoogroups.com, "Mario" <mario.kleiner@> wrote:
> >
> >
> >
> >
> >
> > --- In psychtoolbox@yahoogroups.com, "matadasm" <matadasm@> wrote:
> > >
> > > I'm running PTB on a Mac, OS 10.6.8, with Matlab R2010a. I have been running an older PTB version (i.e., installed maybe back in Feb 2011) for a while. Today, I decided to update. When I did it, I got the java classpath error (the one that suggests "help PsychJavaTrouble" to solve it. But I checked, and I already have the appropriate line (/Applications/Psychtoolbox/PsychJava) in my classpath.txt file, and it's writable (as is the directory). None of the other errors seem to fit for me. Any ideas?
> > >
> >
> > No. Does PsychJavaTrouble() temporarily fix the problem? Then it is some classpath problem. If calling PsychJavaTrouble() doesn't fix the problem, something else is broken on your system. Maybe delete the PsychJava subfolder and run UpdatePsychtoolbox again, just to make sure you don't have some bad download or corrupted files?
> >
> > -mario
> >
>