Back to Psychopysics Programming with Java

psychWithJava - a package of Java classes for Psychophysics experiments

The classes in this package provide convenient methods to use for psychophysics programming. The purpose here is to demonstrate the usage of those methods. For those demos, there is no need to know the implementation details of the tools, however those details are available in this Guide.

The instructions in this Chapter provide demos and information on using psychWithJava package for

  • pure Java development with command line tools
  • pure Java development with Eclipse
  • Matlab development
  • Mathematica development
on three operating systems: Linux, Mac OS X (Tiger), and MS Windows (in alphabetical order).
Installation and configuration
Step 1: Install Java Development Kit
    psychWithJava package needs Java Development Kit (JDK) version 5.0 (equivelent to 1.5) or above, available from See Chapter 1: Introduction "Section 5: Setting up the Java platform" of the Guide for more information on how to download and install latest JDK.
    Linux users: I recommend installing version 6.0 because it has improved graphics capabilities on Linux systems. See Chapter 1: Introduction Section 5 of the Guide for more about that. However if your development environment is going to be Matlab, you should use version 5.0.
    Mac OS X users: Mac OS X (Tiger, both PPC and Intel) version of Java 5.0 can be found at Search for Java 5.0. Get the latest update (release 4 or above). After you install the latest update the prefered version of your Mac OS X (Tiger) automatically changes to 5.0 from the default 1.4.
Step 2: Dowload the psychWithJava package
    Download the psychWithJava package psychWithJava.jar and place it on your filesystem. The exact location does not matter.
Step 3: Setup your OS and/or development platform

Click here for demo programs using psychWithJava package. Each demo comes in three versions: pure Java version, Matlab version, and Mathematica version. (Note: to run the demos you first need to install the psychWithJava package.)
API specification manuals
Click here for documentation of all classes and methods in psychWithJava package.

Copyright (C) 2005 - 2006 Huseyin Boyaci

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (