MATLAB 2009a (7.8.0.347) and FlushEvents

There is a Java error that occurs with MATLAB 2009a.

The same error does not occur with a 2007b install on the same computer.

The error occurs with FlushEvents. I have copied and pasted the exact code (and output) at the end of this post.

I ran "help PsychJavaTrouble" and the only applicable item is option 6 [Other reasons: Post to the Psychtoolbox forum and ask for help].

This is likely a JAVA problem, but I'm not sure how to solve it. I ran MATLAB 2009a again, with a Sun Java SDK installed, but still with no luck.

Has anyone else run into this problem?

cheers,
Jason


-------

>> FlushEvents
Could not create a GetCharJava object. This may be due to any of the
reasons mentioned in 'help PsychJavaTrouble'. Another reason could be
that i do not have a matching GetCharJava implementation for your version
of Matlab. Will try now to compile a customized GetCharJava using the javac compiler.
This may or may not work...
Compile command is: javac /Applications/Psychtoolbox/PsychJava/GetCharJava.java
Failed to built customized GetCharJava! This may be due to lack of
an installed Java SDK on your system. Read 'help PsychJavaTrouble'
for more info.

??? Error using ==> FlushEvents at 73
Could not load Java class GetCharJava! Read 'help PsychJavaTrouble' for help.

>>

--------