Back

Setting up your system for pure Java development with Eclipse

This section explains how to prepare your system to develope pure Java programs using Eclipse and psychWithJava package. Eclipse, an open source project, is one of the many Integrated Development Environments (IDE) available for Java programming that makes development much easier and faster. The editor of Eclipse flags the mistakes as you are typing your code and suggest possible options to fix those mistakes. You do not need to remember which libraries to import, because Eclipse will do that for you automatically, and suggest automatic code completions. And finally the program can be run and debugged directly with Eclipse. (Note: these instructions are based on Eclipse 3.2, there may be differences with other versions.)

  • Install Eclipse
    • Mac OS X and Windows Download and install Eclipse on your OS as described in http://www.eclipse.org
    • Linux Consult your distribution's documentation for native build of Eclipse. Many distributions carry Eclipse natively built and usually available as a package to easily install. Otherwise install from http://www.eclipse.org.
  • Start Eclipse. (The first time it is invoked Eclipse offers a Welcome screen, it is possible to use tutorials linked from that welcome screen.) Click Window -> Preferences. On the "Preferences" window, go to Java -> Build Path -> Classpath Variables. Click on "New". Preferences window is shown in figure below.


    This image is altered to fit the page. Click on the image to see it in its actual size

  • "New Variable Entry" window should appear. On that window enter the full path to the psychWithJava.jar file (or click on "File" to browse your filesystem.) Enter a name for the variable. Click OK. New Variable Entery window is shown in figure below.

  • Now psychWithJava should be visible among the Classpath Variables on the "Preferences" window (see figure below). Click OK.


    This image is altered to fit the page. Click on the image to see it in its actual size


  •   Back