# matlab release r2007a and PTB (MacOSX)

**URL:** <https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150>\
**Category:** Uncategorized\
**Created:** [March 5, 2007, 9:31pm UTC](https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150 "2007-03-05T21:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rileyrific](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rileyrific](https://psychtoolbox.discourse.group/u/rileyrific)\
**Post date:** [March 5, 2007, 9:31pm UTC](https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150/1 "2007-03-05T21:31:46Z")

</div>

I installed the new Matlab release for OSX today. It generated the  
following error: "Could not load Java class GetCharJava!" with respect  
to ListenChar, and then again (after I commented out ListenChar) to  
FlushEvents. So it seems as if they have modified the java  
implementation in a way which is incompatible with the current PTB  
(version of 2/15/07).  
  
Todd  
  
version info:  
  

> \>\> ver

-------------------------------------------------------------------------------------  
MATLAB Version 7.4.0.287 (R2007a)  
  
Operating System: Mac OS X Version: 10.4.8 Build: 8L127   
Java VM Version: Java 1.5.0\_07 with "Apple Computer, Inc." Java  
HotSpot(TM) Client VM mixed mode, sharing  
-------------------------------------------------------------------------------------  
MATLAB Version 7.4   
 (R2007a)   
 EyelinkToolbox Version 1.4.4   
  
 iViewXToolbox Version 0.1   
  
Optimization Toolbox Version 3.1.1   
 (R2007a)   
Psychtoolbox Version 3.0.8   
 9 October  
Statistics Toolbox Version 6.0   
 (R2007a)

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [March 5, 2007, 11:06pm UTC](https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150/2 "2007-03-05T23:06:44Z")

</div>

Hi Todd  
  
Does invokation of "PsychJavaTrouble" help? Did you follow the troubleshooting tips of   
"help PsychJavaTrouble"?  
  
If you type "javaclasspath", does the path to Psychtoolbox PsychJava subfolder show up   
somewhere?  
  
-mario  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "todd\_horowitz" \<toddh@...\> wrote:  
> \>  
> \> I installed the new Matlab release for OSX today. It generated the  
> \> following error: "Could not load Java class GetCharJava!" with respect  
> \> to ListenChar, and then again (after I commented out ListenChar) to  
> \> FlushEvents. So it seems as if they have modified the java  
> \> implementation in a way which is incompatible with the current PTB  
> \> (version of 2/15/07).  
> \>   
> \> Todd  
> \>   
> \> version info:  
> \>   
> \> \>\> ver  
> \>   
> ----------------------------------------------------------------------------  
> ---------  
> \> MATLAB Version 7.4.0.287 (R2007a)  
> \>   
> \> Operating System: Mac OS X Version: 10.4.8 Build: 8L127   
> \> Java VM Version: Java 1.5.0\_07 with "Apple Computer, Inc." Java  
> \> HotSpot(TM) Client VM mixed mode, sharing  
> \>   
> ----------------------------------------------------------------------------  
> ---------  
> \> MATLAB Version 7.4   
> \> (R2007a)   
> \> EyelinkToolbox Version 1.4.4   
> \>   
> \> iViewXToolbox Version 0.1   
> \>   
> \> Optimization Toolbox Version 3.1.1   
> \> (R2007a)   
> \> Psychtoolbox Version 3.0.8   
> \> 9 October  
> \> Statistics Toolbox Version 6.0   
> \> (R2007a)  
> \>

---

<div class="post-metadata">

**Author:** ![rileyrific](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rileyrific](https://psychtoolbox.discourse.group/u/rileyrific)\
**Post date:** [March 6, 2007, 7:20pm UTC](https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150/3 "2007-03-06T19:20:25Z")

</div>

Hi Mario  
  
PsychJavaTrouble fixed it. Looks like everything works OK at this point!  
  
thanks  
Todd  
  
  
--- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Mario Kleiner"  
\<mario.kleiner@...\> wrote:  

> \>  
> \> Hi Todd  
> \>   
> \> Does invokation of "PsychJavaTrouble" help? Did you follow the

troubleshooting tips of   

> \> "help PsychJavaTrouble"?  
> \>   
> \> If you type "javaclasspath", does the path to Psychtoolbox PsychJava

subfolder show up   

> \> somewhere?  
> \>   
> \> -mario  
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "todd\_horowitz" \<toddh@\> wrote:  
> \> \>  
> \> \> I installed the new Matlab release for OSX today. It generated the  
> \> \> following error: "Could not load Java class GetCharJava!" with respect  
> \> \> to ListenChar, and then again (after I commented out ListenChar) to  
> \> \> FlushEvents. So it seems as if they have modified the java  
> \> \> implementation in a way which is incompatible with the current PTB  
> \> \> (version of 2/15/07).  
> \> \>   
> \> \> Todd  
> \> \>   
> \> \> version info:  
> \> \>   
> \> \> \>\> ver  
> \> \>   
> \>

----------------------------------------------------------------------------  

> \> ---------  
> \> \> MATLAB Version 7.4.0.287 (R2007a)  
> \> \>   
> \> \> Operating System: Mac OS X Version: 10.4.8 Build: 8L127   
> \> \> Java VM Version: Java 1.5.0\_07 with "Apple Computer, Inc." Java  
> \> \> HotSpot(TM) Client VM mixed mode, sharing  
> \> \>   
> \>

----------------------------------------------------------------------------  

> \> ---------  
> \> \> MATLAB Version 7.4   
> \> \> (R2007a)   
> \> \> EyelinkToolbox Version 1.4.4   
> \> \>   
> \> \> iViewXToolbox Version 0.1   
> \> \>   
> \> \> Optimization Toolbox Version 3.1.1   
> \> \> (R2007a)   
> \> \> Psychtoolbox Version 3.0.8   
> \> \> 9 October  
> \> \> Statistics Toolbox Version 6.0   
> \> \> (R2007a)  
> \> \>  
> \>

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [March 6, 2007, 10:30pm UTC](https://psychtoolbox.discourse.group/t/matlab-release-r2007a-and-ptb-macosx/1150/4 "2007-03-06T22:30:32Z")

</div>

Yes, but that's a temporary fix. Run PsychtoolboxPostInstallRoutine(1) to fix it   
permanently. The same routine gets called after each UpdatePsychtoolbox.  
  
-mario  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "todd\_horowitz" \<toddh@...\> wrote:  
> \>  
> \> Hi Mario  
> \>   
> \> PsychJavaTrouble fixed it. Looks like everything works OK at this point!  
> \>   
> \> thanks  
> \> Todd  
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Mario Kleiner"  
> \> \<mario.kleiner@\> wrote:  
> \> \>  
> \> \> Hi Todd  
> \> \>   
> \> \> Does invokation of "PsychJavaTrouble" help? Did you follow the  
> \> troubleshooting tips of   
> \> \> "help PsychJavaTrouble"?  
> \> \>   
> \> \> If you type "javaclasspath", does the path to Psychtoolbox PsychJava  
> \> subfolder show up   
> \> \> somewhere?  
> \> \>   
> \> \> -mario  
> \> \>   
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "todd\_horowitz" \<toddh@\> wrote:  
> \> \> \>  
> \> \> \> I installed the new Matlab release for OSX today. It generated the  
> \> \> \> following error: "Could not load Java class GetCharJava!" with respect  
> \> \> \> to ListenChar, and then again (after I commented out ListenChar) to  
> \> \> \> FlushEvents. So it seems as if they have modified the java  
> \> \> \> implementation in a way which is incompatible with the current PTB  
> \> \> \> (version of 2/15/07).  
> \> \> \>   
> \> \> \> Todd  
> \> \> \>   
> \> \> \> version info:  
> \> \> \>   
> \> \> \> \>\> ver  
> \> \> \>   
> \> \>  
> \>   
> ----------------------------------------------------------------------------  
> \> \> ---------  
> \> \> \> MATLAB Version 7.4.0.287 (R2007a)  
> \> \> \>   
> \> \> \> Operating System: Mac OS X Version: 10.4.8 Build: 8L127   
> \> \> \> Java VM Version: Java 1.5.0\_07 with "Apple Computer, Inc." Java  
> \> \> \> HotSpot(TM) Client VM mixed mode, sharing  
> \> \> \>   
> \> \>  
> \>   
> ----------------------------------------------------------------------------  
> \> \> ---------  
> \> \> \> MATLAB Version 7.4   
> \> \> \> (R2007a)   
> \> \> \> EyelinkToolbox Version 1.4.4   
> \> \> \>   
> \> \> \> iViewXToolbox Version 0.1   
> \> \> \>   
> \> \> \> Optimization Toolbox Version 3.1.1   
> \> \> \> (R2007a)   
> \> \> \> Psychtoolbox Version 3.0.8   
> \> \> \> 9 October  
> \> \> \> Statistics Toolbox Version 6.0   
> \> \> \> (R2007a)  
> \> \> \>  
> \> \>  
> \>
