Step 3 - Tell Ejs where to find the JDK

The last step in the process is to tell Ejs where to find the JDK.

One way to do this is to go into the Ejs folder and right-click on the Ejs batch file. Select "Edit" from the list of options, and then make sure you have a line that reads:
set JAVAROOT=C:\Program files\Java\jdk1.5.0_06

Note: if you have a different version of the JDK, or it's in a different directory, you'll need to use the right version and the right directory, but the above line should work for us today.

Save the file, and then exit. Double-click on the batch file to start Ejs!

If that works you're all set, but you could have done the following instead:

Method 2 (this did not work for me on the lab computers) is to just double-click the "Ejs Console", and make sure the Java line reads:
C:\Program files\Java\jdk1.5.0_06

The part I could not get to work in the lab was then going on to click the "Launch Easy Java Simulations" button, but since our first method should work we should be fine.

We're now ready to explore the wonders of Ejs, courtesy of Francisco Esquembre.